]> source.dussan.org Git - jquery-ui.git/commitdiff
draggable: missed internal use of ui.absolutePosition
authorRichard Worth <rdworth@gmail.com>
Tue, 3 Feb 2009 03:02:30 +0000 (03:02 +0000)
committerRichard Worth <rdworth@gmail.com>
Tue, 3 Feb 2009 03:02:30 +0000 (03:02 +0000)
ui/ui.draggable.js

index 58c000eae9331e619cd2645cd8152207b30091e2..3ffb86b4600e6e621a97c4dbe3a6e62a29d9b87f 100644 (file)
@@ -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--){