Skip to content

Commit

Permalink
perf(column-resize): Further defer initial min/max column size applic…
Browse files Browse the repository at this point in the history
…ation to reduce layout thrashing (#20238)
  • Loading branch information
kseamon committed Aug 12, 2020
1 parent c7a7b1e commit 3ce4452
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/cdk-experimental/column-resize/resizable.ts
Expand Up @@ -94,13 +94,15 @@ export abstract class Resizable<HandleComponent extends ResizeOverlayHandle>
}

ngAfterViewInit() {
this._viewInitialized = true;

this._listenForRowHoverEvents();
this._listenForResizeEvents();
this._appendInlineHandle();
this._applyMinWidthPx();
this._applyMaxWidthPx();

this.styleScheduler.scheduleEnd(() => {
this._viewInitialized = true;
this._applyMinWidthPx();
this._applyMaxWidthPx();
});
}

ngOnDestroy(): void {
Expand Down

0 comments on commit 3ce4452

Please sign in to comment.