Fix issue where viewport would not be tall enough for scrolling.