Permalink
Browse files

Revert "Work around an issue with `Element.cumulativeOffset` that was…

… affecting sortable behavior in script.aculo.us. (sam, Andrew Dupont)"

This reverts commit 544d2ce.
  • Loading branch information...
1 parent 0b108e2 commit 8456c981da5ccdde4ef22a20e2aa52d68d2d52bf @sstephenson committed Apr 13, 2010
Showing with 2 additions and 4 deletions.
  1. +0 −2 CHANGELOG
  2. +2 −2 src/deprecated.js
View
2 CHANGELOG
@@ -1,5 +1,3 @@
-* Work around an issue with `Element.cumulativeOffset` that was affecting sortable behavior in script.aculo.us. (sam, Andrew Dupont)
-
*1.7_rc1* (April 1, 2010)
* Add an `Event.Handler` class, plus `Event.on` and `Element#on` methods, for simplified event delegation. (sam, Tobie Langel, Andrew Dupont)
View
4 src/deprecated.js
@@ -64,8 +64,8 @@ var Position = {
withinIncludingScrolloffsets: function(element, x, y) {
var offsetcache = Element.cumulativeScrollOffset(element);
- this.xcomp = x - this.deltaX;
- this.ycomp = y - this.deltaY;
+ this.xcomp = x + offsetcache[0] - this.deltaX;
+ this.ycomp = y + offsetcache[1] - this.deltaY;
this.offset = Element.cumulativeOffset(element);
return (this.ycomp >= this.offset[1] &&

0 comments on commit 8456c98

Please sign in to comment.