libkiwix/test
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
..
data Fix git clone on Windows 2023-01-18 23:01:14 +01:00
book.cpp Deprecate methods on Book. 2022-01-12 18:07:46 +01:00
httplib.h Fix warning in httplib. 2021-11-16 09:39:56 +01:00
kiwixserve.cpp Fix tests. 2020-01-20 17:00:18 +01:00
library.cpp Library::removeBookById() updates the revision 2022-10-19 19:26:04 +04:00
library_server.cpp RequestContext::get_query() is fully URI-encoded 2023-01-25 19:15:12 +04:00
lrucache.cpp uint is not defined on Windows 2022-06-10 11:21:35 +02:00
manager.cpp Manager::reload() 2021-11-30 18:20:27 +04:00
meson.build Unit-testing of kiwix::Suggestions 2022-11-17 11:51:53 +04:00
name_mapper.cpp Dropped Library::getBookBy*() non-const functions 2021-11-30 18:20:27 +04:00
opds_catalog.cpp Proper URI-encoding in kiwix::getSearchUrl() 2023-01-25 19:15:12 +04:00
otherTools.cpp Properly implemented parseUserLanguagePreferences() 2022-12-14 15:34:46 +01:00
pathTools.cpp Do not include posix header on Windows 2022-01-19 16:15:59 +01:00
regex.cpp Got rid of unused *pendToFirstOccurence() funcs 2022-09-21 15:52:26 +04:00
server.cpp Fixed ZIM viewer iframe height under SeaMonkey 2023-02-08 15:36:04 +01:00
server_helper.cpp Introduce a pagination object to render search result. 2022-05-23 19:12:17 +02:00
server_search.cpp Properly URI-encoded links in search results 2023-01-25 19:15:12 +04:00
server_testing_tools.h Make the opds_dumper respect the provided nameMapper used in the server. 2022-10-30 19:21:01 +01:00
stringTools.cpp Dropped the 2nd param of urlEncode() 2023-01-25 19:15:12 +04:00
tagParsing.cpp Fix tests. 2020-01-20 17:00:18 +01:00