Skip to content

Commit

Permalink
main - 8950ec3 fix(cdk/table): Column sizing and scrolling bug when n…
Browse files Browse the repository at this point in the history
…umber of columns in table changes (#30378)
  • Loading branch information
kseamon committed Jan 24, 2025
1 parent 4509c7b commit 1f70ebf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fesm2022/column-resize.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ class ResizeStrategy {
this._pendingResizeDelta = null;
});
this.styleScheduler.scheduleEnd(() => {
// Once the column sizes have updated, we unset the table width so that
// it does not have unwanted side effects on future changes in the table
// such as columns being added or removed.
tableElement.style.width = '';
this.table.updateStickyColumnStyles();
});
}
Expand Down
2 changes: 1 addition & 1 deletion fesm2022/column-resize.mjs.map

Large diffs are not rendered by default.

0 comments on commit 1f70ebf

Please sign in to comment.