Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#2304 closed bug (fixed)

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:


The tolerance-options 'fit', 'intersect' and 'touch' don't work as expected in the demo on : 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.

Change History (4)

comment:1 Changed 15 years ago by paul

Status: newassigned

comment:2 Changed 15 years ago by paul

Resolution: fixed
Status: assignedclosed

comment:3 Changed 15 years ago by (none)

Milestone: 1.2.3

Milestone 1.2.3 deleted

comment:4 Changed 14 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.