We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb6b9a commit a6a28d2Copy full SHA for a6a28d2
src/offset.js
@@ -140,8 +140,8 @@ jQuery.fn.extend( {
140
141
// Incorporate borders into its offset, since they are outside its content origin
142
parentOffset = jQuery( offsetParent ).offset();
143
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
144
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
+ parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
+ parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
145
}
146
147
0 commit comments