Skip to content

Commit

Permalink
Apply the standard fix for IE (why is this not yet fixed in Prototype?)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlship committed Apr 4, 2011
1 parent d8c9cd7 commit 20de9a8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3700,7 +3700,7 @@ Element.addMethods({
var isInline = (Element.getStyle(element, 'display') === 'inline');
if (!isInline && element.offsetParent) return $(element.offsetParent);

while ((element = element.parentNode) && element !== document.body) {
while ((element = element.parentNode) && element !== document.body && element !== document) {
if (Element.getStyle(element, 'position') !== 'static') {
return isHtml(element) ? $(document.body) : $(element);
}
Expand Down

0 comments on commit 20de9a8

Please sign in to comment.