ngx-ui-scroll icon indicating copy to clipboard operation
ngx-ui-scroll copied to clipboard

Viewport loads all items when positioned at top

Open warunaudayanga opened this issue 1 year ago • 1 comments

Hey,

when the panel is positioned at top, when panel is opened it loads all the items into viewport, if i have 1000 items it start to scroll to bottom as soon as the panel is opened, and stops at the end.

       const positionStrategy = this.overlay
            .position()
            .flexibleConnectedTo(this.input!.nativeElement)
            .withPositions([{ originX: "start", originY: "top", overlayX: "start", overlayY: "bottom" }]);

warunaudayanga avatar Jul 08 '24 09:07 warunaudayanga

@warunaudayanga Hello! Sorry, I must admit I didn't understand anything. Are you sure your problem is related to ngx-ui-scroll? If yes, it would be very useful if you could provide a repro, for example by forking this stackblitz: https://stackblitz.com/edit/ngx-ui-scroll-3-angular-17.

dhilt avatar Jul 08 '24 21:07 dhilt