Commit ed51be16 authored by Brandon Aaron's avatar Brandon Aaron

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

parent 2608bae4
...@@ -57,7 +57,7 @@ jQuery.fn.offset = function() { ...@@ -57,7 +57,7 @@ jQuery.fn.offset = function() {
// Get parent scroll offsets // 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 // 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 // Subtract parent scroll offsets
add( -parent.scrollLeft, -parent.scrollTop ); add( -parent.scrollLeft, -parent.scrollTop );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment