Skip to content

Commit abeb13a

Browse files
committed
Position: set "at" option while align to cursor, fixes collision:flip not work with default value
1 parent afd9c70 commit abeb13a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ui/ui.position.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ $.fn.position = function(options) {
3838
targetHeight = target.height();
3939
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
4040
} else if (options.of.preventDefault) {
41+
options.at = "left top"; // while align to cursor, "at" default value "center" causes "collision:flip" not work.
4142
targetWidth = targetHeight = 0;
4243
basePosition = { top: options.of.pageY, left: options.of.pageX };
4344
} else {

0 commit comments

Comments
 (0)