diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-06 12:15:47 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-06 12:15:47 -0400 |
commit | 3f3f3571715d74d67fbf05d10f1815a087b7055b (patch) | |
tree | ed85e87a831b5215f37e380521f39d557bd27c34 | |
parent | 92b7722fffc68dbb124e5b171cd0169f95da241b (diff) | |
download | jquery-ui-3f3f3571715d74d67fbf05d10f1815a087b7055b.tar.gz jquery-ui-3f3f3571715d74d67fbf05d10f1815a087b7055b.zip |
Droppable: Adjust fit tolerance to allow dropping an element exactly the same size as the droppable area. Fixed #5689 - Droppable tolerance fit feature.
-rw-r--r-- | ui/jquery.ui.droppable.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 |