Module: check_mk
Branch: master
Commit: 1b694be8bfee586a7fe8ba294b4e37f4aa7ac76b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1b694be8bfee58…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 27 13:52:24 2010 +0100
Fixed left/top definitions when moving a snapin
---
web/htdocs/js/sidebar.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/js/sidebar.js b/web/htdocs/js/sidebar.js
index ab971cb..b205c68 100644
--- a/web/htdocs/js/sidebar.js
+++ b/web/htdocs/js/sidebar.js
@@ -150,8 +150,8 @@ function snapinDrag(event) {
var newTop = event.clientY - snapinOffset[0] - snapinScrollTop;
if (weAreIEF__k)
newTop += document.getElementById('side_content').scrollTop;
- snapinDragging.style.top = newTop;
- snapinDragging.style.left = event.clientX - snapinOffset[1];
+ snapinDragging.style.top = newTop + 'px';
+ snapinDragging.style.left = (event.clientX - snapinOffset[1]) + 'px';
snapinDragging.style.width = '175px';
snapinDragging.style.zIndex = 200;