mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Fixed column widths not maintaining in the helper element (fixes #74)
This commit is contained in:
parent
df26fe04a6
commit
c224c33173
@ -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;
|
||||
}
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user