Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewport loads all items when positioned at top #354

Open
warunaudayanga opened this issue Jul 8, 2024 · 1 comment
Open

Viewport loads all items when positioned at top #354

warunaudayanga opened this issue Jul 8, 2024 · 1 comment

Comments

@warunaudayanga
Copy link

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" }]);
@dhilt
Copy link
Owner

dhilt commented Jul 8, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants