diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-08-02 14:02:32 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-08-02 14:02:32 +0000 |
commit | abeb13af407103068c73857dddd85e30dca08a3f (patch) | |
tree | 81bb5600517b5542feda6acb22f9b60cf7ef990a /ui | |
parent | afd9c70be6ff5eaeeadb2c8a3729a0d4958ecc60 (diff) | |
download | jquery-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.js | 1 |
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 {
|