From 9942d1e30c3b4f620db8582f3d5aa2c72a404fda Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 9 Dec 2010 12:34:44 -0700 Subject: [PATCH] Bug #9441: Ghosted element may occur inside of scrollable element --- horde/js/dragdrop2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.11.0