change findHeightToViewBounds logic to work correctly on small bounds