diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-08-03 13:17:56 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-08-03 13:17:56 +0000 |
commit | 52ca5251123f62c48030115fbaa58fb4827dd413 (patch) | |
tree | 3426e6a5d095fb81ac283d508eb7b2a9e1c58447 | |
parent | 61e06a0e1362018a41925a62ea69e3734e527c40 (diff) | |
download | jquery-ui-52ca5251123f62c48030115fbaa58fb4827dd413.tar.gz jquery-ui-52ca5251123f62c48030115fbaa58fb4827dd413.zip |
Position: fixed comment wording.
-rw-r--r-- | ui/ui.position.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.position.js b/ui/ui.position.js index 587c0ce0c..6c5250959 100644 --- a/ui/ui.position.js +++ b/ui/ui.position.js @@ -38,8 +38,8 @@ $.fn.position = function(options) { targetHeight = target.height();
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
} else if (options.of.preventDefault) {
- // while align to cursor, "at" default value "center" causes "collision:flip" not work
- options.at = "left top";
+ // force left top to allow flipping
+ options.at = 'left top';
targetWidth = targetHeight = 0;
basePosition = { top: options.of.pageY, left: options.of.pageX };
} else {
|