File tree 2 files changed +6
-1
lines changed
cdk-experimental/column-resize
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,11 @@ export abstract class ResizeStrategy implements OnDestroy {
65
65
} ) ;
66
66
67
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
+
68
73
this . table . updateStickyColumnStyles ( ) ;
69
74
} ) ;
70
75
}
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ export class StickyStyler {
185
185
}
186
186
}
187
187
188
- if ( this . _positionListener ) {
188
+ if ( this . _positionListener && cellWidths . some ( w => ! ! w ) ) {
189
189
this . _positionListener . stickyColumnsUpdated ( {
190
190
sizes :
191
191
lastStickyStart === - 1
You can’t perform that action at this time.
0 commit comments