Opened 7 years ago

#14908 new bug

Sortable truncates width property to an integer which makes flexbox items to wrap

Reported by: Peter Hozák Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.11.3
Keywords: Cc:
Blocked by: Blocking:


JQuery UI Sortable truncates width and height style properties of the currently dragged item.

If the original width/height stretches to fit the content to a floating point precision, e.g. when using flexbox (see, then the truncation forces the content to wrap.

Same behaviour observed in Firefox 43.0.4, Chrome 47.0.2526.111 and Edge 25.10586 on Win 10... using either jQuery UI 1.11.3, 1.11.4 or git version at the time of reporting.



If floating point precision is not possible, rounding up instead of down would prevent this problem.


A dirty fix I used for the immediate need was to manually edit the downloaded source code -

helper .width ( this .currentItem .width () + 1);

Change History (0)

Note: See TracTickets for help on using tickets.