mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Offset: fix error from bad merge in #3695
This commit is contained in:
parent
0fb6b9a860
commit
a6a28d24c1
@ -140,8 +140,8 @@ jQuery.fn.extend( {
|
|||||||
|
|
||||||
// Incorporate borders into its offset, since they are outside its content origin
|
// Incorporate borders into its offset, since they are outside its content origin
|
||||||
parentOffset = jQuery( offsetParent ).offset();
|
parentOffset = jQuery( offsetParent ).offset();
|
||||||
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
|
parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
|
||||||
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
|
parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user