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

Using a function for sizing results in an incorrect total size once the items get all sized #26

Open
dtzxporter opened this issue Mar 9, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dtzxporter
Copy link

https://github.com/skayo/svelte-tiny-virtual-list/blob/1cc31b6b919b1624c24286445367ec8bc40727cf/src/SizeAndPositionManager.js#L230

This looks like part of the issue. (if you have 50 items, and they are all measured (last = 49), this will still add estimated to the final size.

May be other issues with the function, but it works properly just passing an array and recomputing the sizes as needed.

@jonasgeiler jonasgeiler added the bug Something isn't working label Feb 12, 2024
@jonasgeiler jonasgeiler self-assigned this Feb 12, 2024
@jonasgeiler jonasgeiler added this to the 3.0.0 milestone Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants