libkiwix/static
Veloman Yunkan 57484fd63d Fixed ZIM viewer iframe height under SeaMonkey
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
2023-02-08 15:36:04 +01:00
..
skin Fixed ZIM viewer iframe height under SeaMonkey 2023-02-08 15:36:04 +01:00
templates Fixed URLs to static resources without cacheids 2022-10-19 19:26:04 +04:00
catalog_v2_searchdescription.xml /catalog/v2/searchdescription.xml 2021-06-08 20:37:00 +04:00
ft_opensearchdescription.xml Add searchdescription.xml endpoint 2022-06-03 15:46:41 +02:00
generate_i18n_resources_list.py /skin/languages.js 2023-02-06 17:39:55 +01:00
i18n_resources_list.txt Moved i18n resources under skin/ 2023-02-06 17:39:55 +01:00
meson.build Don't use `check` keyword argument on old meson. 2023-02-08 15:19:59 +01:00
navigation_feed.tmpl Introduce the server functionality in the kiwix-lib. 2019-08-11 11:30:43 +02:00
opensearchdescription.xml Root url is normalized once in the constructor 2021-06-08 20:37:00 +04:00
resources_list.txt Frontend i18n utilities 2023-02-06 17:39:55 +01:00
viewer.html Added prototype UI language selector 2023-02-06 17:39:55 +01:00