to measure window height when resizing contents
Sometimes these values differ by a pixel,
we may never know why.
window.innerHeight seems to be larger when they disagree, causing an extra scrollbar to be drawn.
The approach in #7517 didn't work on Safari
(as in the entire page was invisible).
This is the same mechanism used to size the CodeMirror div on the edit page, and should work more reliably.