We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afd9c70 commit abeb13aCopy full SHA for abeb13a
1 file changed
ui/ui.position.js
@@ -38,6 +38,7 @@ $.fn.position = function(options) {
38
targetHeight = target.height();
39
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
40
} else if (options.of.preventDefault) {
41
+ options.at = "left top"; // while align to cursor, "at" default value "center" causes "collision:flip" not work.
42
targetWidth = targetHeight = 0;
43
basePosition = { top: options.of.pageY, left: options.of.pageX };
44
} else {
0 commit comments