From f3ecb7bb2cd554f2d4b8acb98f24d30dcf954863 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 13 Jun 2008 22:57:25 +0000 Subject: Scrolling area of categories on left --- www/ajax/rrdui.js | 13 +++++++++++++ www/ajax/style.css | 7 +++++++ 2 files changed, 20 insertions(+) (limited to 'www/ajax') 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; } -- cgit v1.2.3