Offset: Resolve strict mode ClientRect "no setter" exception

This commit is contained in:
Richard Gibson 2016-04-23 00:31:28 -04:00
parent 76084372c2
commit 3befe5911a

View File

@ -144,8 +144,10 @@ jQuery.fn.extend( {
} }
// Add offsetParent borders // Add offsetParent borders
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); parentOffset = {
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); top: parentOffset.top + jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ),
left: parentOffset.left + jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true )
};
} }
// Subtract parent offsets and element margins // Subtract parent offsets and element margins