mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 13:14:59 -05:00
Fix #8482, offsetParent should not return null. Closes gh-847.
This commit is contained in:
committed by
Dave Methvin
parent
05aff40231
commit
aaf134bb70
@@ -138,7 +138,7 @@ jQuery.fn.extend({
|
||||
while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
|
||||
offsetParent = offsetParent.offsetParent;
|
||||
}
|
||||
return offsetParent;
|
||||
return offsetParent || document.body;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user