Skip to content

Commit

Permalink
Merge pull request #4276 from 1Map/master
Browse files Browse the repository at this point in the history
DataTable in expand mode resizing problem
  • Loading branch information
tugcekucukoglu committed Aug 17, 2023
2 parents 8ea2c0b + 956c8b4 commit 77a6fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -1238,8 +1240,6 @@ export default {
updateTableWidth(body);
updateTableWidth(frozenBody);
}
this.resizeTableCells(newColumnWidth);
}
this.$emit('column-resize-end', {
Expand Down

0 comments on commit 77a6fc2

Please sign in to comment.