Reach browser max height pixels
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 466
- Avg merge
- 2d 31m
- Merged PRs (30d)
- 13
Description
Describe the bug
I'm doing some POC to check if I'll be able to render a larger list and I face some issues with the current approach you use by setting the height of the parent element to create the scrollable area. If the list size is long it could beat the max height value which is:
Firefox: 33554400px
Chrome: 33554428px
In that way is impossible to keep scrolling until the end of the list
Your minimal, reproducible example
https://codesandbox.io/p/sandbox/romantic-breeze-tjpnxm?embed=1&file=%2Fsrc%2Fmain.tsx%3A4%2C21
Steps to reproduce
- Create a list with 1677723 items and each item should have 20px
- Cannot scroll to see the last item
Expected behavior
- Create a list with 1677723 items and each item should have 20px
- Be able to see the last item
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
macOS - Chrome
tanstack-virtual version
3.0.0-alpha.1
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox minimal reproduction and verify the failure using a list of 1,677,723 items at 20px each in Chrome. Trace how the virtualized list creates its scrollable parent and determine how the browser height limit is handled. Done means the last item is reachable in the reproduction without breaking normal scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100