mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Position: Use targetElem for events to maintain consistency.
This commit is contained in:
2
ui/jquery.ui.position.js
vendored
2
ui/jquery.ui.position.js
vendored
@@ -109,7 +109,7 @@ $.fn.position = function( options ) {
|
||||
// force left top to allow flipping
|
||||
options.at = "left top";
|
||||
targetWidth = targetHeight = 0;
|
||||
targetOffset = { top: options.of.pageY, left: options.of.pageX };
|
||||
targetOffset = { top: targetElem.pageY, left: targetElem.pageX };
|
||||
} else {
|
||||
targetWidth = target.outerWidth();
|
||||
targetHeight = target.outerHeight();
|
||||
|
||||
Reference in New Issue
Block a user