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 30b5ba5 commit 0fb6b9aCopy full SHA for 0fb6b9a
src/offset.js
@@ -140,10 +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 = {
144
- top: parentOffset.top + jQuery.css( offsetParent, "borderTopWidth", true ),
145
- left: parentOffset.left + jQuery.css( offsetParent, "borderLeftWidth", true )
146
- };
+ parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
+ parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
147
}
148
149
0 commit comments