reordered height detection add increased minimum height.
reordered height detection add increased minimum height.

aino/galleria,worseisbetter/galleria,rimig/galleria,worseisbetter/galleria,rimig/galleria