diff --git a/modules/theseven/webui/wwwroot/static/loggadget/loggadget.js b/modules/theseven/webui/wwwroot/static/loggadget/loggadget.js index 5ae4ddd..43a2018 100644 --- a/modules/theseven/webui/wwwroot/static/loggadget/loggadget.js +++ b/modules/theseven/webui/wwwroot/static/loggadget/loggadget.js @@ -39,6 +39,7 @@ mod.loggadget = { box.setResizable(false, true, function() { div.scrollTop = div.scrollHeight; + div.style.height = box.rootNode.style.height; }, function() { mod.uiconfig.data.loggadget.height = box.rootNode.style.height; @@ -48,10 +49,10 @@ mod.loggadget = { var table = document.createElement("table"); var tbody = document.createElement("tbody"); table.appendChild(tbody); - div.style.position = "absolute"; + div.style.position = "relative"; div.style.left = "0px"; div.style.right = "0px"; - div.style.height = "100%"; + div.style.height = box.rootNode.style.height; div.style.overflow = "auto"; div.allowSelect = true; div.allowDrag = true; diff --git a/modules/theseven/webui/wwwroot/static/statsgadget/statsgadget.js b/modules/theseven/webui/wwwroot/static/statsgadget/statsgadget.js index e608c86..1f28237 100644 --- a/modules/theseven/webui/wwwroot/static/statsgadget/statsgadget.js +++ b/modules/theseven/webui/wwwroot/static/statsgadget/statsgadget.js @@ -44,7 +44,7 @@ mod.statsgadget = { mod.uiconfig.update(); }); var div = document.createElement("div"); - div.style.position = "absolute"; + div.style.position = "relative"; div.style.left = "0px"; div.style.right = "0px"; div.style.height = "100%";