From f8dfc879720f1127bcb273e3b6cfc148cb294ea8 Mon Sep 17 00:00:00 2001 From: leonidasdel <55215042+leonidasdel@users.noreply.github.com> Date: Sun, 7 Jul 2024 01:31:25 +0300 Subject: [PATCH] fix(autocomplete): dropdown height with virtual scroll --- src/app/components/scroller/scroller.ts | 2 ++ 1 file changed, 2 insertions(+) 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);