diff --git a/src/directives/auto-rows.ts b/src/directives/auto-rows.ts index 3e7a24291..3160c00f1 100644 --- a/src/directives/auto-rows.ts +++ b/src/directives/auto-rows.ts @@ -47,8 +47,11 @@ export class CoreAutoRowsDirective { /** * Resize after content. */ - ngAfterViewContent(): void { - this.resize(); + ngAfterViewInit(): void { + // Wait for rendering of child views. + setTimeout(() => { + this.resize(); + }, 300); } /**