Opened 4 years ago

Last modified 4 years ago

#11518 open bug

Sortable: Draggable helper gets explicit width when using connectToSortable

Reported by: creage Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:

Description

I have Draggable, connected to Sortable. Draggable has cloned helper. When I drag an item to the sortable list, the dropped item has wrong sizes assigned, which produces unexpected layout.

Please, see the http://jsfiddle.net/BW3NW/16/

Change History (2)

comment:1 Changed 4 years ago by Scott González

Component: ui.coreui.sortable
Status: newopen
Summary: Unexpected sizes applied to draggable after droping it to sortableSortable: Draggable helper gets explicit width when using connectToSortable

I'm not actually sure if the bug is in draggable or sortable. It wasn't obvious where the explicit width was getting applied, but it doesn't happen until the draggable is appended to the sortable.

comment:2 Changed 4 years ago by creage

I also notice, that removing the

helper: 'clone'

from the Draggable options makes it work as expected

Note: See TracTickets for help on using tickets.