Add robust column sizing and redraw fix for autocomplete forms

This commit is contained in:
Mikhail Chusavitin
2026-02-10 14:03:28 +03:00
parent 4e83c47c68
commit 286aaeaf74
2 changed files with 14 additions and 1 deletions

View File

@@ -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;
}
/* Стили для редакторов в формах */

View File

@@ -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) => {