aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorChi Cheng <cloudream@gmail.com>2009-08-02 14:02:32 +0000
committerChi Cheng <cloudream@gmail.com>2009-08-02 14:02:32 +0000
commitabeb13af407103068c73857dddd85e30dca08a3f (patch)
tree81bb5600517b5542feda6acb22f9b60cf7ef990a /ui
parentafd9c70be6ff5eaeeadb2c8a3729a0d4958ecc60 (diff)
downloadjquery-ui-abeb13af407103068c73857dddd85e30dca08a3f.tar.gz
jquery-ui-abeb13af407103068c73857dddd85e30dca08a3f.zip
Position: set "at" option while align to cursor, fixes collision:flip not work with default value
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.position.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ui.position.js b/ui/ui.position.js
index 0c947570b..54adffd0c 100644
--- a/ui/ui.position.js
+++ b/ui/ui.position.js
@@ -38,6 +38,7 @@ $.fn.position = function(options) {
targetHeight = target.height();
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
} else if (options.of.preventDefault) {
+ options.at = "left top"; // while align to cursor, "at" default value "center" causes "collision:flip" not work.
targetWidth = targetHeight = 0;
basePosition = { top: options.of.pageY, left: options.of.pageX };
} else {