Skip to content
Permalink
Browse files

Include scroll offsets for everything but inline and table-row elements

  • Loading branch information
brandonaaron committed Sep 11, 2007
1 parent 2608bae commit ed51be16224d392ae0b539d7aa2db294973c624d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/offset.js
@@ -57,7 +57,7 @@ jQuery.fn.offset = function() {
// Get parent scroll offsets
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")) )
if ( !/^inline|table-row.*$/i.test(jQuery.css(parent, "display")) )
// Subtract parent scroll offsets
add( -parent.scrollLeft, -parent.scrollTop );

0 comments on commit ed51be1

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