]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: fixed comment wording.
authorScott González <scott.gonzalez@gmail.com>
Mon, 3 Aug 2009 13:17:56 +0000 (13:17 +0000)
committerScott González <scott.gonzalez@gmail.com>
Mon, 3 Aug 2009 13:17:56 +0000 (13:17 +0000)
ui/ui.position.js

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