I'm using @tanstack/svelte-virtual. With masonry type grids total size (.getTotalSize()) seems to be based on all other row heights + the height of the shortest item in the last row of the grid (instead tallest item in the latest row of the grid).
Expected behavior
For masonry type grids .getTotalSize() being calculated based on tallest item in each row instead of shortest item for the very last row.
Platform
macOS, Chrome
tanstack-virtual version
v3.0.4
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.
Describe the bug
I'm using @tanstack/svelte-virtual. With masonry type grids total size (
.getTotalSize()
) seems to be based on all other row heights + the height of the shortest item in the last row of the grid (instead tallest item in the latest row of the grid).Expected behavior
For masonry type grids
.getTotalSize()
being calculated based on tallest item in each row instead of shortest item for the very last row.Platform
macOS, Chrome
tanstack-virtual version
v3.0.4
Terms & Code of Conduct