r3019 committed - Position: set "at" option while align to cursor, fixes collision:flip ...
Revision: 3019
Author: cloudream@gmail.com
Date: Sun Aug 2 07:02:32 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=3019
Modified:
/trunk/ui/ui.position.js
=======================================
--- /trunk/ui/ui.position.js Thu Jul 30 17:15:36 2009
+++ /trunk/ui/ui.position.js Sun Aug 2 07:02:32 2009
@@ -38,6 +38,7 @@
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 {