jQueryUI sortable on table rows shrinks them while being dragged

Yossi picture Yossi · Jun 21, 2012 · Viewed 12.7k times · Source

This issue of table rows shrinking while dragged in the sortable function troubles me for a long time. Any answer? (Q&A)

P.S. in order for sortable to work at all on tables you MUST use TBODY around the table rows you wish to sort and then call the sortable function on the containing TBODY.

Answer

Alexandr Derkach picture Alexandr Derkach · Dec 1, 2014
.ui-sortable-helper {
    display: table;
}