Adjust heights on rotation