diff --git a/src/offset.js b/src/offset.js index 19090ac09..9c43296fe 100644 --- a/src/offset.js +++ b/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 );