]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: set "at" option while align to cursor, fixes collision:flip not work with...
authorChi Cheng <cloudream@gmail.com>
Sun, 2 Aug 2009 14:02:32 +0000 (14:02 +0000)
committerChi Cheng <cloudream@gmail.com>
Sun, 2 Aug 2009 14:02:32 +0000 (14:02 +0000)
ui/ui.position.js

index 0c947570bd448e0c33b46abf30bf24317c86c84d..54adffd0c53d78666d8252381f53019440658f3b 100644 (file)
@@ -38,6 +38,7 @@ $.fn.position = function(options) {
                targetHeight = target.height();\r
                basePosition = { top: target.scrollTop(), left: target.scrollLeft() };\r
        } else if (options.of.preventDefault) {\r
+               options.at = "left top";        // while align to cursor, "at" default value "center" causes "collision:flip" not work.\r
                targetWidth = targetHeight = 0;\r
                basePosition = { top: options.of.pageY, left: options.of.pageX };\r
        } else {\r