From: Richard Worth Date: Tue, 3 Feb 2009 03:02:30 +0000 (+0000) Subject: draggable: missed internal use of ui.absolutePosition X-Git-Tag: 1.6~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8bc22ea6f30d489a47d8aaf07492be28a9a5ee55;p=jquery-ui.git draggable: missed internal use of ui.absolutePosition --- 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--){