Make refresh work (mostly) with Firefox

Former-commit-id: a5d1a31e30b4b7991d12fbd67139467e977b52ad [formerly 7a26c94d7a18046a50649c5230373897cf4643b3 [formerly 18b9429bf2758693d2229f76e63e9852b1a7320a]]
Former-commit-id: f2e8de636970afc704198546d57b049001781884 [formerly 086aaa8f3b0df72d1c917a77a43c9bb8371e4ce9]
Former-commit-id: c1c7366c202c25e4149e3eef01ed48a7a802de28
This commit is contained in:
Jaifroid 2022-06-11 18:13:34 +01:00
parent c7e13b3604
commit 63f889a576

View File

@ -95,11 +95,11 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
iframe.style.transform = 'translateY(-1px)';
// iframe.style.height = window.innerHeight + 'px';
// DEV: if we set the iframe with clientHeight, then it takes into account any zoom
iframe.style.height = document.documentElement.clientHeight-1 + 'px';
iframe.style.height = document.documentElement.clientHeight - 5 + 'px';
// This is needed to cause a reflow in Zimit ZIMs
setTimeout(function() {
iframe.style.height = document.documentElement.clientHeight + 'px';
}, 0);
}, 5);
//Re-enable top-level scrolling
scrollbox.style.height = window.innerHeight - navbarHeight + 'px';