public
Description: Prototype JavaScript framework
Homepage: http://prototypejs.org/
Clone URL: git://github.com/sstephenson/prototype.git
Fix the deprecated Position.withinIncludingScrollOffsets. [#196 state:resolved]
Wed Jul 16 11:04:50 -0700 2008
commit  c84acf07cbea49b7dd71e1f00cc737b8baa2acb8
tree    18141083b827ac68f9531b58d4c656125e97e0fb
parent  a134431d807463274176f6db457a2001e9b7e3a4
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Fix the deprecated Position.withinIncludingScrollOffsets. [jddalton]
0
+
0
 * Consolidate document.body getOffsetParent checks into a private utility method. [staaky, jddalton]
0
 
0
 * Fix issues with Element#cumulativeScrollOffset and Opera <9.5. [staaky, jddalton]
...
67
68
69
70
71
 
 
72
73
74
...
67
68
69
 
 
70
71
72
73
74
0
@@ -67,8 +67,8 @@ var Position = {
0
     var offsetcache = Element.cumulativeScrollOffset(element),
0
     dimensions = Element.getDimensions(element);
0
 
0
-    this.xcomp = x + offsetcache[0];
0
-    this.ycomp = y + offsetcache[1];
0
+    this.xcomp = x + offsetcache[0] - this.deltaX;
0
+    this.ycomp = y + offsetcache[1] - this.deltaY;
0
     this.offset = Element.cumulativeOffset(element);
0
 
0
     return (this.ycomp >= this.offset[1] &&

Comments