summaryrefslogtreecommitdiff
path: root/www/ajax/rrdui.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/ajax/rrdui.js')
-rw-r--r--www/ajax/rrdui.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/ajax/rrdui.js b/www/ajax/rrdui.js
index fc238d9..17faf87 100644
--- a/www/ajax/rrdui.js
+++ b/www/ajax/rrdui.js
@@ -29,10 +29,23 @@ function init()
setupFrame();
loadXml(makeEndpointURI(), loadedGraphData);
+
+ window.onresize = reflow;
+ reflow();
}
init();
+function reflow()
+{
+ var headers = document.getElementById("headers");
+ if(!headers)
+ return;
+ height = document.body.clientHeight - (headers.offsetTop + 20);
+ headers.style.height = height + "px";
+ headers.style.width = headers.offsetWidth + "px";
+}
+
function loadedGraphData(doc)
{
if(!doc)