Account for when viewport ends before the bottom of the screen, and thus keyboard is not obscuring as much of the viewport as we thought it was.   Fixes #16989, refs #16730 !strict.