File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
cdk-experimental/column-resize Expand file tree Collapse file tree 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 {
6565 } ) ;
6666
6767 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+
6873 this . table . updateStickyColumnStyles ( ) ;
6974 } ) ;
7075 }
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ export class StickyStyler {
185185 }
186186 }
187187
188- if ( this . _positionListener ) {
188+ if ( this . _positionListener && cellWidths . some ( w => ! ! w ) ) {
189189 this . _positionListener . stickyColumnsUpdated ( {
190190 sizes :
191191 lastStickyStart === - 1
You can’t perform that action at this time.
0 commit comments