From: Scott González Date: Tue, 6 Jul 2010 16:15:47 +0000 (-0400) Subject: Droppable: Adjust fit tolerance to allow dropping an element exactly the same size... X-Git-Tag: 1.8.3~64 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f3f3571715d74d67fbf05d10f1815a087b7055b;p=jquery-ui.git Droppable: Adjust fit tolerance to allow dropping an element exactly the same size as the droppable area. Fixed #5689 - Droppable tolerance fit feature. --- diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js index 4cd7f56e2..429e1518a 100644 --- a/ui/jquery.ui.droppable.js +++ b/ui/jquery.ui.droppable.js @@ -161,8 +161,8 @@ $.ui.intersect = function(draggable, droppable, toleranceMode) { switch (toleranceMode) { case 'fit': - return (l < x1 && x2 < r - && t < y1 && y2 < b); + return (l <= x1 && x2 <= r + && t <= y1 && y2 <= b); break; case 'intersect': return (l < x1 + (draggable.helperProportions.width / 2) // Right Half