Droppable tolerance fit feature
|Reported by:||Pavel||Owned by:|
I have been playing around with the draggable & droppable and noticed that if the draggable element has the same dimensions with the droppable element, the drop event is never triggered. I could not figure out whether this was a bug or a feature though.
I got it working by editing jquery.ui.droppable.js at line 163 from
case 'fit': return (l < x1 && x2 < r && t < y1 && y2 < b); break;
case 'fit': return (l <= x1 && x2 <= r && t <= y1 && y2 <= b); break;