Commit 3b1de112 authored by Timmy Willison's avatar Timmy Willison

Offset: getBounding doesn't return width/height in IE8. Fixes test.

parent 523de777
...@@ -108,9 +108,6 @@ jQuery.fn.extend({ ...@@ -108,9 +108,6 @@ jQuery.fn.extend({
} }
rect = elem.getBoundingClientRect(); rect = elem.getBoundingClientRect();
// Make sure element is not hidden (display: none)
if ( rect.width || rect.height ) {
win = getWindow( doc ); win = getWindow( doc );
return { return {
...@@ -119,10 +116,6 @@ jQuery.fn.extend({ ...@@ -119,10 +116,6 @@ jQuery.fn.extend({
left: rect.left + ( win.pageXOffset || docElem.scrollLeft ) - left: rect.left + ( win.pageXOffset || docElem.scrollLeft ) -
( docElem.clientLeft || 0 ) ( docElem.clientLeft || 0 )
}; };
}
// Return zeros for hidden elements
return rect;
}, },
position: function() { position: function() {
......
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