Fix jumping of the page when switching from a page that doesn't fit vertically in the screen to one that does