There is a bug in tanstack-virtual where if using max-height for a scroll container, measurement updates don't properly update cache and elements will be missing if the the total size ends up being under the max height of the container.
https://github.com/TanStack/virtual/issues/869
This workaround is to set an arbitrarily large initial height for elements, which seems to avoid the bug where some items are not drawn.
There is a bug in tanstack-virtual where if using max-height for a scroll container, measurement updates don't properly update cache and elements will be missing if the the total size ends up being under the max height of the container. https://github.com/TanStack/virtual/issues/869
This workaround is to set an arbitrarily large initial height for elements, which seems to avoid the bug where some items are not drawn.