diff options
Diffstat (limited to 'ui/ui.position.js')
-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 {
|