Large set of data not fully rendered
Describe the bug
When trying to render a large list of items (1 million row for example) then scroll to the last item in the list, only 958.697 rows are rendered when the row height is equal to 35, if we set the row height to 50, then only 671.088 rows are rendered.
I think that this issue is related to a browser limitation (see https://stackoverflow.com/questions/16637530/whats-the-maximum-pixel-value-of-css-width-and-height-properties), still i noticed that libraries like react-virtualized doesn't have this issue, so i believe that there must be a way to fix it. May i get any more clarifications or ways to fix it? Thanks.
Your minimal, reproducible example
https://codesandbox.io/s/practical-ives-holiyy?file=/src/main.tsx
Steps to reproduce
- Run the sandbox
- Scroll to the last element in the virtualized list
Expected behavior
The last element should be 999.999 (since the rows index starts from 0).
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Ubuntu 22.04, Chrome latest
tanstack-virtual version
V3.0.0-beta32
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
/test
/test