mirror of https://github.com/kiwix/libkiwix.git
SeaMonkey doesn't yet support [Window.visualViewport][1]. As a result the height of the content iframe element was initialized to the default 150 pixels and never changed. Fortunately there is [Window.innerHeight][2] which is supported from the very first days of the Gecko layout engine. The difference between `Window.visualViewport.height` and `Window.innerHeight` is that the latter also includes - the height of the horizontal scroll bar, if present (but in a correctly implemented ZIM viewer there shouldn't be a horizontal scroll bar for the full web-page, so it's OK) - the height of the on-screen keyboard (which is mostly used on mobile devices where SeaMonkey doesn't run). And it is also arguable if the appearing on-screen keyboard should squeeze the iframe or slide over it (in which latter case it may make more sense to always use `innerHeight` instead of `visualViewport.height`). [1]: https://developer.mozilla.org/en-US/docs/Web/API/Window/visualViewport [2]: https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight |
||
---|---|---|
.. | ||
skin | ||
templates | ||
catalog_v2_searchdescription.xml | ||
ft_opensearchdescription.xml | ||
generate_i18n_resources_list.py | ||
i18n_resources_list.txt | ||
meson.build | ||
navigation_feed.tmpl | ||
opensearchdescription.xml | ||
resources_list.txt | ||
viewer.html |