Fixed column widths not maintaining in the helper element (fixes #74)

This commit is contained in:
Ed Chipman 2015-09-18 15:59:03 -03:00
parent df26fe04a6
commit c224c33173
2 changed files with 5 additions and 9 deletions

View File

@ -119,4 +119,8 @@
.cms table.ss-gridfield-table.dragSorting tbody tr td {
cursor: move;
}
.cms table.ss-gridfield-table.dragSorting .ui-sortable-helper {
display: table;
}

View File

@ -19,14 +19,6 @@
gridField.find('tbody').sortable({
opacity: 0.6,
disabled: ($(this).is(':checked')==false),
helper: function(e, ui) {
//Maintains width of the columns
ui.children().each(function(index) {
$(this).width($(this).width());
});
return ui;
},
start: function(event, ui) {
pageArrows.show();
pageArrows.redraw();
@ -203,4 +195,4 @@
});
});
})(jQuery);
})(jQuery);