Skip to content
Permalink
Browse files

Couple of fixes to the offset method

  • Loading branch information
brandonaaron committed Sep 11, 2007
1 parent a36771c commit 2608bae43818bbb3b828e35a2684d0a8a51cb5ab
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/offset.js
@@ -55,7 +55,7 @@ jQuery.fn.offset = function() {
}

// Get parent scroll offsets
while ( parent.tagName && /^body|html$/i.test(parent.tagName) ) {
while ( parent.tagName && !/^body|html$/i.test(parent.tagName) ) {
// Work around opera inline/table scrollLeft/Top bug
if ( /^inline|table-row.*$/i.test(jQuery.css(parent, "display")) )
// Subtract parent scroll offsets
@@ -70,7 +70,7 @@ jQuery.fn.offset = function() {
}

// Safari doubles body offsets with an absolutely positioned element or parent
if ( safari && absolute )
if ( safari2 && absolute )
add( -doc.body.offsetLeft, -doc.body.offsetTop );
}

0 comments on commit 2608bae

Please sign in to comment.
You can’t perform that action at this time.