Add robust column sizing and redraw fix for autocomplete forms
This commit is contained in:
@@ -499,11 +499,19 @@
|
||||
#insertFormTable .tabulator-col:first-child,
|
||||
#editFormTable .tabulator-col:first-child {
|
||||
width: 250px !important;
|
||||
min-width: 250px !important;
|
||||
}
|
||||
|
||||
#insertFormTable .tabulator-col:nth-child(2),
|
||||
#editFormTable .tabulator-col:nth-child(2) {
|
||||
width: 350px !important;
|
||||
min-width: 350px !important;
|
||||
}
|
||||
|
||||
/* Ensure proper column sizing in modal context */
|
||||
#insertFormTable .tabulator-table,
|
||||
#editFormTable .tabulator-table {
|
||||
min-width: 600px !important;
|
||||
}
|
||||
|
||||
/* Стили для редакторов в формах */
|
||||
|
||||
@@ -470,7 +470,12 @@ async function promptForRequiredFields(requiredFields, optionalFields) {
|
||||
};
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
// Ensure proper column sizing in modal context
|
||||
rowClick: function(e, row) {
|
||||
// Force re-render to ensure proper column widths
|
||||
tabulatorInstance.redraw();
|
||||
}
|
||||
});
|
||||
|
||||
return new Promise((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user