r1976 - trunk/ui

r1976 - trunk/ui


Author: rdworth
Date: Mon Feb 2 19:02:30 2009
New Revision: 1976
Modified:
trunk/ui/ui.draggable.js
Log:
draggable: missed internal use of ui.absolutePosition
Modified: trunk/ui/ui.draggable.js
==============================================================================
--- trunk/ui/ui.draggable.js    (original)
+++ trunk/ui/ui.draggable.js    Mon Feb 2 19:02:30 2009
@@ -673,8 +673,8 @@
        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--){