mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Offset: Resolve strict mode ClientRect "no setter" exception
This commit is contained in:
parent
76084372c2
commit
3befe5911a
@ -144,8 +144,10 @@ jQuery.fn.extend( {
|
||||
}
|
||||
|
||||
// Add offsetParent borders
|
||||
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
|
||||
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
|
||||
parentOffset = {
|
||||
top: parentOffset.top + jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ),
|
||||
left: parentOffset.left + jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true )
|
||||
};
|
||||
}
|
||||
|
||||
// Subtract parent offsets and element margins
|
||||
|
Loading…
Reference in New Issue
Block a user