diff --git a/css/GridFieldSortableRows.css b/css/GridFieldSortableRows.css index 88f7cc6..86a05a1 100644 --- a/css/GridFieldSortableRows.css +++ b/css/GridFieldSortableRows.css @@ -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; } \ No newline at end of file diff --git a/javascript/GridFieldSortableRows.js b/javascript/GridFieldSortableRows.js index 34444ee..0177582 100644 --- a/javascript/GridFieldSortableRows.js +++ b/javascript/GridFieldSortableRows.js @@ -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); \ No newline at end of file +})(jQuery);