content height based on presence of buttons