diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-08-02 16:17:07 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-08-02 16:17:07 +0000 |
commit | a962d52902bdccbd9d91ecc419750c0d5d3abcac (patch) | |
tree | 64ef9296e7f98068f0648a89be779678f2743224 /ui | |
parent | abeb13af407103068c73857dddd85e30dca08a3f (diff) | |
download | jquery-ui-a962d52902bdccbd9d91ecc419750c0d5d3abcac.tar.gz jquery-ui-a962d52902bdccbd9d91ecc419750c0d5d3abcac.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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.position.js b/ui/ui.position.js index 54adffd0c..587c0ce0c 100644 --- a/ui/ui.position.js +++ b/ui/ui.position.js @@ -38,7 +38,8 @@ $.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.
+ // while align to cursor, "at" default value "center" causes "collision:flip" not work
+ options.at = "left top";
targetWidth = targetHeight = 0;
basePosition = { top: options.of.pageY, left: options.of.pageX };
} else {
|