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
{{ message }}
Repository navigation
laneAssignmentMode 'measured': is it intended that a row measured at exactly its estimate can change lanes? #1379
With lanes > 1 and laneAssignmentMode: 'measured', a row whose first measurement exactly equals estimateSize doesn't get its lane cached, because resizeItem records a measurement only when the size changes. When a row above it grows later, that row is placed again and can move to another lane. A row measured at any other size keeps its lane.
At 100, row 1 growing moves rows 3, 5, 6 and 7 to another lane.
At 101, every row keeps its lane.
Expected behavior
I can't tell which behavior is intended, so I'd like to ask before going further.
If this is not intended, a row measured at exactly its estimate should keep its lane like any other measured row, since the docs say lanes are cached and remain stable after the initial measurement. fix(virtual-core): keep the lane of a row measured at its estimate #1377 is a draft of that fix.
I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Thanks @oyobbeb, yep, it's a bug. 'measured' mode was meant to cache the lane on the first measurement (#1115), and it uses itemSizeCache.has(key) as the "was measured" check. But resizeItem only writes to that cache when the size changes, so a row measured at exactly its estimate looks like it was never measured. The placeholder idea doesn't really hold either, a placeholder at 99 or 101 already locks its lane on main.
Marked #1377 as ready and merged main into it, CI is green.
Activity
piecyk commentedon Nov 22, 2026
Thanks @oyobbeb, yep, it's a bug.
'measured'mode was meant to cache the lane on the first measurement (#1115), and it usesitemSizeCache.has(key)as the "was measured" check. ButresizeItemonly writes to that cache when the size changes, so a row measured at exactly its estimate looks like it was never measured. The placeholder idea doesn't really hold either, a placeholder at 99 or 101 already locks its lane on main.Marked #1377 as ready and merged main into it, CI is green.