Skip to content

Commit

Permalink
Fix Position.within in IE. [#200 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Jul 16, 2008
1 parent c84acf0 commit 5fffac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,3 +1,5 @@
* Fix Position.within in IE. [jddalton]

* Fix the deprecated Position.withinIncludingScrollOffsets. [jddalton]

* Consolidate document.body getOffsetParent checks into a private utility method. [staaky, jddalton]
Expand Down
3 changes: 3 additions & 0 deletions src/dom.js
Expand Up @@ -625,6 +625,9 @@ Object.extend(Element.Methods, (function() {
(element.sourceIndex < 1 || !element.offsetParent)) {
return false;
}
if (element.sourceIndex > 0 && element.offsetParent === document.documentElement) {
return element.offsetParent;
}
return op;
}

Expand Down

0 comments on commit 5fffac9

Please sign in to comment.