From: Michael M Slusarz Date: Mon, 2 Mar 2009 23:30:41 +0000 (-0700) Subject: Fix ghosting position in scrolled element X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0bc90a43d32c336e368adbdead0c20a297888642;p=horde.git Fix ghosting position in scrolled element --- 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 ]; }