Search and Top Navigation
#5689 closed bug (fixed)
Opened June 04, 2010 06:39AM UTC
Closed July 06, 2010 04:17PM UTC
Last modified November 19, 2010 06:25PM UTC
Droppable tolerance fit feature
Reported by: | Pavel | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.3 |
Component: | ui.droppable | Version: | 1.8.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
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;
to
case 'fit': return (l <= x1 && x2 <= r && t <= y1 && y2 <= b); break;
Thanks
Fixed in 3f3f357. Thanks Pavel.