From 43f857874ef314d35c04f4dbbe630ba1511b16de Mon Sep 17 00:00:00 2001 From: 1Map Date: Wed, 16 Aug 2023 12:40:28 +0200 Subject: [PATCH] DataTable in expand mode resizing problem --- components/lib/datatable/DataTable.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index af6b29418..c8641bfc1 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -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', {