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
@ -120,3 +120,7 @@
|
|||||||
.cms table.ss-gridfield-table.dragSorting tbody tr td {
|
.cms table.ss-gridfield-table.dragSorting tbody tr td {
|
||||||
cursor: move;
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cms table.ss-gridfield-table.dragSorting .ui-sortable-helper {
|
||||||
|
display: table;
|
||||||
|
}
|
@ -19,14 +19,6 @@
|
|||||||
gridField.find('tbody').sortable({
|
gridField.find('tbody').sortable({
|
||||||
opacity: 0.6,
|
opacity: 0.6,
|
||||||
disabled: ($(this).is(':checked')==false),
|
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) {
|
start: function(event, ui) {
|
||||||
pageArrows.show();
|
pageArrows.show();
|
||||||
pageArrows.redraw();
|
pageArrows.redraw();
|
||||||
|
Loading…
Reference in New Issue
Block a user