mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
Offset: Fix comment typo, thanks @AurelioDeRosa
This commit is contained in:
parent
84190105c0
commit
bb3fff9ac2
@ -117,7 +117,7 @@ jQuery.fn.extend({
|
||||
elem = this[ 0 ],
|
||||
parentOffset = { top: 0, left: 0 };
|
||||
|
||||
// Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent
|
||||
// Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is its only offset parent
|
||||
if ( jQuery.css( elem, "position" ) === "fixed" ) {
|
||||
// We assume that getBoundingClientRect is available when computed position is fixed
|
||||
offset = elem.getBoundingClientRect();
|
||||
|
Loading…
Reference in New Issue
Block a user