From af812182dffc1df969df9ab65b2dc8d34a409062 Mon Sep 17 00:00:00 2001 From: m0mchil Date: Mon, 17 Sep 2012 17:47:31 +0300 Subject: [PATCH] fix webui issues in firefox using position = "relative" and dynamically adjusting 'autocursor' div in loggadget --- modules/theseven/webui/wwwroot/static/loggadget/loggadget.js | 5 +++-- .../theseven/webui/wwwroot/static/statsgadget/statsgadget.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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%";