We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b683474 commit 5b4ca17Copy full SHA for 5b4ca17
src/cdk-experimental/column-resize/resize-strategy.ts
@@ -65,6 +65,11 @@ export abstract class ResizeStrategy implements OnDestroy {
65
});
66
67
this.styleScheduler.scheduleEnd(() => {
68
+ // Once the column sizes have updated, we unset the table width so that
69
+ // it does not have unwanted side effects on future changes in the table
70
+ // such as columns being added or removed.
71
+ tableElement.style.width = '';
72
+
73
this.table.updateStickyColumnStyles();
74
75
}
src/cdk/table/sticky-styler.ts
@@ -185,7 +185,7 @@ export class StickyStyler {
185
186
187
188
- if (this._positionListener) {
+ if (this._positionListener && cellWidths.some(w => !!w)) {
189
this._positionListener.stickyColumnsUpdated({
190
sizes:
191
lastStickyStart === -1
0 commit comments