From ed51be16224d392ae0b539d7aa2db294973c624d Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Tue, 11 Sep 2007 01:08:51 +0000 Subject: [PATCH] Include scroll offsets for everything but inline and table-row elements --- src/offset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5