diff options
-rw-r--r-- | www/ajax/rrdui.js | 13 | ||||
-rw-r--r-- | www/ajax/style.css | 7 |
2 files changed, 20 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) diff --git a/www/ajax/style.css b/www/ajax/style.css index 5980f99..fd9ea46 100644 --- a/www/ajax/style.css +++ b/www/ajax/style.css @@ -51,6 +51,12 @@ body * GROUP HEADERS */ +#headers +{ + overflow: auto; + height: 100%; +} + /* A group button at the top */ .header { @@ -65,6 +71,7 @@ body text-decoration: none; display: block; } + .header:hover { color: white; } |