spacer element

An empty element sized to the full height of all list items so the scrollbar behaves as if every item were rendered.

In more detail

Its height is the item count multiplied by the item height; only the visible rows are actually placed inside it. Without it the scrollbar would be tiny and jump as rows are swapped in and out.

Related terms

Taught in

References