r3020 committed - Position: set "at" option while align to cursor, fixes collision:flip ...
Revision: 3020
Author: cloudream@gmail.com
Date: Sun Aug 2 09:17:07 2009
Log: Position: set "at" option while align to cursor, fixes collision:flip
not work with default value
http://code.google.com/p/jquery-ui/source/detail?r=3020
Modified:
/trunk/ui/ui.position.js
=======================================
--- /trunk/ui/ui.position.js Sun Aug 2 07:02:32 2009
+++ /trunk/ui/ui.position.js Sun Aug 2 09:17:07 2009
@@ -38,7 +38,8 @@
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.
+ // while align to cursor, "at" default value "center"
causes "collision:flip" not work
+ options.at = "left top";
targetWidth = targetHeight = 0;
basePosition = { top: options.of.pageY, left: options.of.pageX };
} else {