Moves heightRatio logic out of the view, back to adapter