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 |
||
---|---|---|
.. | ||
css | ||
favicon | ||
fonts | ||
i18n | ||
autoComplete.min.js | ||
bittorrent.png | ||
blank.html | ||
caret.png | ||
download.png | ||
hash.png | ||
i18n.js | ||
index.css | ||
index.js | ||
iso6391To3.js | ||
isotope.pkgd.js | ||
isotope.pkgd.min.js | ||
languages.js | ||
magnet.png | ||
mustache.js | ||
mustache.min.js | ||
search-icon.svg | ||
search_results.css | ||
taskbar.css | ||
viewer.js |