adjust max font size based on panel height