Widget sizing fixes

This commit is contained in:
Zef Hemel
2023-10-04 13:47:02 +02:00
parent 2a1438f95a
commit 852b07c7a7
3 changed files with 43 additions and 3 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ let oldHeight = undefined;
let heightChecks = 0;
function updateHeight() {
const body = document.body, html = document.documentElement;
let height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
let height = Math.max(body.offsetHeight, html.offsetHeight);
heightChecks++;
if(height !== oldHeight) {
oldHeight = height;