Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rxVirtualFor does not display anything for a valid initialScrollIndex and items that fit in a single page #1779

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

Closed
zarko-tg opened this issue Sep 18, 2024 · 1 comment · Fixed by #1787

Comments

@zarko-tg
Copy link

Description

One cannot always know the number (or total height) of list items for display in advance. I have a case where I'd like to set the initialScrollIndex to a valid value, but all items fit on screen / in a single page.
This results in a blank page - there are no items rendered in the DOM at all.

The expectation is at least that the items get displayed.

Steps to Reproduce the Issue

https://stackblitz.com/edit/stackblitz-starters-eq5ehz?file=src%2Fmain.ts

This works out of the box for the purpose of the demo/reproduction, but once you set the number of items to for. ex. 10 (so they should all fit in one page) the problem occurs.

Environment

Angular CLI: 18.2.4
Node: 20.17.0
OS: macOS 15.0

Angular: 18.2.x
Ivy Workspace: Yes
@rx-angular/template: 18.2.0

Workaround

Not aware of any straightforward workaround.

@hoebbelsB
Copy link
Member

Thanks for the issue, will investigate over the weekend!

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

Successfully merging a pull request may close this issue.

2 participants