diff options
author | Stef Walter <stef@memberwebs.com> | 2008-06-13 22:57:25 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-06-13 22:57:25 +0000 |
commit | f3ecb7bb2cd554f2d4b8acb98f24d30dcf954863 (patch) | |
tree | e0ed139ef7f6bbbf88ffbf740319710e1b8411a7 /www/ajax | |
parent | 1f2452504705756a60602318acce0019328b827c (diff) |
Scrolling area of categories on left
Diffstat (limited to 'www/ajax')
-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; } |