diff --git a/public/scripts/ui.js b/public/scripts/ui.js index 4f2c167..c48ac70 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -1779,8 +1779,8 @@ Events.on('load', () => { let x0, y0, w, h, dw, offset; function init() { - w = window.innerWidth; - h = window.innerHeight; + w = document.documentElement.clientWidth; + h = document.documentElement.clientHeight; c.width = w; c.height = h; offset = $$('footer').offsetHeight - 32; diff --git a/public_included_ws_fallback/scripts/ui.js b/public_included_ws_fallback/scripts/ui.js index 0df8e81..76148c2 100644 --- a/public_included_ws_fallback/scripts/ui.js +++ b/public_included_ws_fallback/scripts/ui.js @@ -1780,8 +1780,8 @@ Events.on('load', () => { let x0, y0, w, h, dw, offset; function init() { - w = window.innerWidth; - h = window.innerHeight; + w = document.documentElement.clientWidth; + h = document.documentElement.clientHeight; c.width = w; c.height = h; offset = $$('footer').offsetHeight - 32;