From 0bc90a43d32c336e368adbdead0c20a297888642 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 2 Mar 2009 16:30:41 -0700 Subject: [PATCH] Fix ghosting position in scrolled element --- imp/js/src/dragdrop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/js/src/dragdrop.js b/imp/js/src/dragdrop.js index 5b1430384..270082873 100644 --- a/imp/js/src/dragdrop.js +++ b/imp/js/src/dragdrop.js @@ -270,7 +270,7 @@ Drag = Class.create({ otop = this.element.offsetTop; this.ghost = $(this.element.cloneNode(true)).writeAttribute('id', null).setOpacity(0.7).clonePosition(this.element, { setLeft: false, setTop: false }).setStyle({ left: oleft + 'px', position: 'absolute', top: otop + 'px', zIndex: parseInt(this.element.getStyle('zIndex')) + 1 }); this.element.insert({ before: this.ghost }); - vo = this.ghost.viewportOffset(); + vo = this.ghost.cumulativeOffset(); this.ghostOffset = [ vo[0] - oleft, vo[1] - otop ]; } -- 2.11.0