Merge pull request #4276 from 1Map/master

DataTable in expand mode resizing problem
pull/4295/head
Tuğçe Küçükoğlu 2023-08-17 18:15:00 +03:00 committed by GitHub
commit 77a6fc225c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1229,6 +1229,8 @@ export default {
!!el && (el.style.width = el.style.minWidth = tableWidth);
};
// Reasoning: resize table cells before updating the table width so that it can use existing computed cell widths and adjust only the one column.
this.resizeTableCells(newColumnWidth);
updateTableWidth(this.$refs.table);
if (!this.virtualScrollerDisabled) {
@ -1238,8 +1240,6 @@ export default {
updateTableWidth(body);
updateTableWidth(frozenBody);
}
this.resizeTableCells(newColumnWidth);
}
this.$emit('column-resize-end', {