diff options
-rw-r--r-- | html/rrdui.js | 8 | ||||
-rw-r--r-- | html/style.css | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/html/rrdui.js b/html/rrdui.js index bfb3cf3..f71a8a3 100644 --- a/html/rrdui.js +++ b/html/rrdui.js @@ -120,7 +120,7 @@ function displayCurrentPage() reloadGraph(img); img.onmousedown = function(evt) - { return zoomGraphStart(gwindow.event ? gwindow.event : evt); } + { actionGotoCancel(); return zoomGraphStart(evt || gwindow.event); } img.onmouseover = function(evt) { return actionsDisplay(gwindow.event ? gwindow.event : evt); } } @@ -407,13 +407,11 @@ function actionGoto(img, act) var got = gdoc.getElementById("goto"); /* TODO: Make 120/170 a constant */ - got.style.top = act.offsetTop; - got.style.left = (img.offsetLeft + img.width) - 170; + got.style.top = img.offsetTop + 40; + got.style.left = (img.offsetLeft + img.width) - 160; got.style.width = 120; got.style.display = "block"; - img.onmouseclick = actionGotoCancel; - var sel = gdoc.getElementById("goto-select"); sel.onchange = actionGotoChange; sel._img = img; diff --git a/html/style.css b/html/style.css index bf65862..7ff1ed7 100644 --- a/html/style.css +++ b/html/style.css @@ -107,7 +107,7 @@ img.graph position: absolute; left: 50px; top: 50px; - height: 160px; + height: 120px; display: none; } |