diff --git a/src/app/components/scroller/scroller.ts b/src/app/components/scroller/scroller.ts index b559691785d..c75e44743f9 100644 --- a/src/app/components/scroller/scroller.ts +++ b/src/app/components/scroller/scroller.ts @@ -614,6 +614,7 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD this.setInitialState(); this.setContentEl(this.contentEl); this.init(); + this.calculateAutoSize(); this.defaultWidth = DomHandler.getWidth(this.elementViewChild?.nativeElement); this.defaultHeight = DomHandler.getHeight(this.elementViewChild?.nativeElement); @@ -1074,6 +1075,7 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD this.defaultContentHeight = DomHandler.getHeight(this.contentEl); this.init(); + this.calculateAutoSize(); }); } }, this._resizeDelay);