Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQueryUI sortable on table rows shrinks them while being dragged

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.

like image 621
Yossi Avatar asked Jun 21 '12 20:06

Yossi


1 Answers

.ui-sortable-helper {
    display: table;
}
like image 57
Alexandr Derkach Avatar answered Sep 18 '22 16:09

Alexandr Derkach