Window.innerHeight includes menu


#1

The Window.innerHeight JavaScript property includes the menu in its count of pixels. This isn’t helpful when you’re trying to position an overlay at the bottom of the window, say, because 2D overlays are positioned with coordinates excluding the menu.

Either the expected value could be returned, or perhaps a Window.menuHeight property added which scripts could subtract from the Window.innerHeight value.

Aside: There is a Controller.getCurrentViewport() JavaScript method which returns the expected values.