From: Michael M Slusarz Date: Thu, 9 Dec 2010 19:34:44 +0000 (-0700) Subject: Bug #9441: Ghosted element may occur inside of scrollable element X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9942d1e30c3b4f620db8582f3d5aa2c72a404fda;p=horde.git Bug #9441: Ghosted element may occur inside of scrollable element --- diff --git a/horde/js/dragdrop2.js b/horde/js/dragdrop2.js index 678b52fd9..e5c231be9 100644 --- a/horde/js/dragdrop2.js +++ b/horde/js/dragdrop2.js @@ -336,7 +336,7 @@ Drag = Class.create({ this.ghost.style.top = (p[1] - delta[1]) + 'px'; // eo is the offset of the original element to the body. - eo = this.element.cumulativeOffset(); + eo = this.element.cumulativeScrollOffset(); // Save external dimensions, i.e. height and width including // padding and margins, for later usage. @@ -367,7 +367,7 @@ Drag = Class.create({ // different from the original element's offset because we // used that element's position when cloning the ghost, but // they might have different parents now. - go = this.ghost.cumulativeOffset(); + go = this.ghost.cumulativeScrollOffset(); // Calculate the difference between the ghost's offset and the // orginal element's offset.