From 8bc22ea6f30d489a47d8aaf07492be28a9a5ee55 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Tue, 3 Feb 2009 03:02:30 +0000 Subject: [PATCH] draggable: missed internal use of ui.absolutePosition --- ui/ui.draggable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index 58c000eae..3ffb86b46 100644 --- a/ui/ui.draggable.js +++ b/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--){ -- 2.39.5