public
Description: Prototype JavaScript framework
Homepage: http://prototypejs.org/
Clone URL: git://github.com/sstephenson/prototype.git
Search Repo:
Fix Position.within in IE. [#200 state:resolved]
Wed Jul 16 11:06:47 -0700 2008
commit  5fffac9ded0fc1b41429a876c3f0c62088a00189
tree    6d2ac3065bb66a2b0b52984ed88de9cd9751f269
parent  c84acf07cbea49b7dd71e1f00cc737b8baa2acb8
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+* Fix Position.within in IE. [jddalton]
0
+
0
 * Fix the deprecated Position.withinIncludingScrollOffsets. [jddalton]
0
 
0
 * Consolidate document.body getOffsetParent checks into a private utility method. [staaky, jddalton]
...
625
626
627
 
 
 
628
629
630
...
625
626
627
628
629
630
631
632
633
0
@@ -625,6 +625,9 @@ Object.extend(Element.Methods, (function() {
0
      (element.sourceIndex < 1 || !element.offsetParent)) {
0
       return false;
0
     }
0
+ if (element.sourceIndex > 0 && element.offsetParent === document.documentElement) {
0
+ return element.offsetParent;
0
+ }
0
     return op;
0
   }
0
 

Comments

    No one has commented yet.