Skip to main content

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

Attachments (0)
Change History (3)

Changed July 06, 2010 04:17PM UTC by scottgonzalez comment:1

milestone: TBD1.9
resolution: → fixed
status: newclosed

Fixed in 3f3f357. Thanks Pavel.

Changed August 04, 2010 01:29AM UTC by scottgonzalez comment:2

milestone: 1.91.8.3

Changed November 19, 2010 06:25PM UTC by Scott González comment:3

Droppable: Adjust fit tolerance to allow dropping an element exactly the same size as the droppable area. Fixed #5689 - Droppable tolerance fit feature.

Changeset: 3f3f3571715d74d67fbf05d10f1815a087b7055b