use float max for max height, not screen