Position: Use targetElem for events to maintain consistency.

This commit is contained in:
Scott González
2012-04-20 10:12:14 -04:00
parent a9f1ffb4fd
commit 22b7f9a819

View File

@@ -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();