Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 3f3f357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.droppable.js
Expand Up @@ -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
Expand Down

0 comments on commit 3f3f357

Please sign in to comment.