Permalink
Browse files

Droppable: Adjust fit tolerance to allow dropping an element exactly …

…the same size as the droppable area. Fixed #5689 - Droppable tolerance fit feature.
  • Loading branch information...
scottgonzalez committed Jul 6, 2010
1 parent 92b7722 commit 3f3f3571715d74d67fbf05d10f1815a087b7055b
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 3f3f357

Please sign in to comment.