From: Chi Cheng Date: Sun, 2 Aug 2009 14:02:32 +0000 (+0000) Subject: Position: set "at" option while align to cursor, fixes collision:flip not work with... X-Git-Tag: 1.8a1~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=abeb13af407103068c73857dddd85e30dca08a3f;p=jquery-ui.git Position: set "at" option while align to cursor, fixes collision:flip not work with default value --- 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 {