Skip to main content

Search and Top Navigation

#2304 closed bug (fixed)

Opened February 08, 2008 10:04AM UTC

Closed February 19, 2008 12:37PM UTC

Last modified February 26, 2009 11:26AM UTC

draggable/droppable: margin of draggable messes up tolerance-options

Reported by: c_t Owned by: paul
Priority: critical Milestone: 1.5
Component: ui.core Version: 1.2.2
Keywords: Cc:
Blocked by: Blocking:
Description

The tolerance-options 'fit', 'intersect' and 'touch' don't work as expected in the demo on http://ui.jquery.com/1.5a/demos/droppable.html : This seems due to the margin of the draggables. As an example I will describe the 'touch'-option:

If the draggable has "margin: 0" everything is fine. As soon as the rightmost pixels of the draggable touch the leftmost pixels of the droppable, the droppable gets activated.

However if there is a "margin: 10px" specified on the draggable (like in the demo) the droppable as activated when the draggable's right edge overlaps the droppables left edge by exactly 10px.

Adding a margin to the droppable however doesn't brake things.

I've tested this issue using Firefox 2 and 3. In Opera the droppable-demo doesn't work at all.

Attachments (0)
Change History (4)

Changed February 19, 2008 12:37PM UTC by paul comment:1

status: newassigned

Changed February 19, 2008 12:37PM UTC by paul comment:2

resolution: → fixed
status: assignedclosed

Changed May 24, 2008 03:39AM UTC by comment:3

milestone: 1.2.3

Milestone 1.2.3 deleted

Changed February 26, 2009 11:26AM UTC by paul comment:4

milestone: → 1.5