Skip to content
Permalink
Browse files

Position: set "at" option while align to cursor, fixes collision:flip…

… not work with default value
  • Loading branch information
chicheng committed Aug 2, 2009
1 parent afd9c70 commit abeb13af407103068c73857dddd85e30dca08a3f
Showing with 1 addition and 0 deletions.
  1. +1 −0 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 {

0 comments on commit abeb13a

Please sign in to comment.
You can’t perform that action at this time.