You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm doing something wrong, but I think that measureElement() is broken. When I try example implementation in the interactive Sandbox and I drag the scrollbar, it is obvious that scrollbar and mouse positions are not in sync. I can't drag scrollbar to the end because my mouse cursor hits screen edge sooner.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to implement virtual list with dynamic row height as shown in https://tanstack.com/virtual/latest/docs/framework/svelte/examples/dynamic?path=examples%2Fsvelte%2Fdynamic%2Fsrc%2FRowVirtualizerDynamic.svelte
All seems fine, rows are loaded and I can scroll, but when I check content of $virtualizer.getMeasurements(), all items have default size.
Even if I explicitly call
virtualItemEls.forEach(el => $virtualizer.measureElement(el))
, nothing changes.But at the same time:
Maybe I'm doing something wrong, but I think that measureElement() is broken. When I try example implementation in the interactive Sandbox and I drag the scrollbar, it is obvious that scrollbar and mouse positions are not in sync. I can't drag scrollbar to the end because my mouse cursor hits screen edge sooner.
Beta Was this translation helpful? Give feedback.
All reactions