window: Factor out the page size query, since we're about to need it a third time
window: Prevent PgDn from taking the scroll bar a page below the screen