From 63f889a576378fc46a545f181b64c2f018b97db3 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Sat, 11 Jun 2022 18:13:34 +0100 Subject: [PATCH] Make refresh work (mostly) with Firefox Former-commit-id: a5d1a31e30b4b7991d12fbd67139467e977b52ad [formerly 7a26c94d7a18046a50649c5230373897cf4643b3 [formerly 18b9429bf2758693d2229f76e63e9852b1a7320a]] Former-commit-id: f2e8de636970afc704198546d57b049001781884 [formerly 086aaa8f3b0df72d1c917a77a43c9bb8371e4ce9] Former-commit-id: c1c7366c202c25e4149e3eef01ed48a7a802de28 --- www/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index 17a04914..c07905ab 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -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';