Skip to content
Permalink
Browse files

draggable: missed internal use of ui.absolutePosition

  • Loading branch information
rdworth committed Feb 3, 2009
1 parent 1c2f51f commit 8bc22ea6f30d489a47d8aaf07492be28a9a5ee55
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/ui.draggable.js
@@ -673,8 +673,8 @@ $.ui.plugin.add("draggable", "snap", {
var inst = $(this).data("draggable"), o = inst.options;
var d = o.snapTolerance;

var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width,
y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height;
var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,
y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;

for (var i = inst.snapElements.length - 1; i >= 0; i--){

0 comments on commit 8bc22ea

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