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';