Reference home > @af-utils/virtual-core > VirtualScrollerRuntimeParams > estimatedItemSize

VirtualScrollerRuntimeParams.estimatedItemSize property

Estimated height/width of scrollable item. Orientation is determined by VirtualScrollerInitialParams.horizontal.

Signature:

estimatedItemSize?: number;

Remarks

Actual size is always reported by internal ResizeObserver when VirtualScroller.attachItem() is called. Bad item size assumptions can turn into shaky scrolling experience. Accuracy here is rewarded.