Skip to content

Commit 4ce2310

Browse files
committed
docs: add missing lane property and fix measureElement method reference in VirtualItem interface and docs
1 parent 7d6e3c9 commit 4ce2310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/api/virtual-item.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface VirtualItem {
1111
start: number
1212
end: number
1313
size: number
14+
lane: number
1415
}
1516
```
1617

@@ -54,7 +55,7 @@ The ending pixel offset for the item. This value is not necessary for most layou
5455
size: number
5556
```
5657

57-
The size of the item. This is usually mapped to a css property like `width/height`. Before an item is measured with the `VirtualItem.measureElement` method, this will be the estimated size returned from your `estimateSize` virtualizer option. After an item is measured (if you choose to measure it at all), this value will be the number returned by your `measureElement` virtualizer option (which by default is configured to measure elements with `getBoundingClientRect()`).
58+
The size of the item. This is usually mapped to a css property like `width/height`. Before an item is measured with the `Virtualizer.measureElement` method, this will be the estimated size returned from your `estimateSize` virtualizer option. After an item is measured (if you choose to measure it at all), this value will be the number returned by your `measureElement` virtualizer option (which by default is configured to measure elements with `getBoundingClientRect()`).
5859

5960
### `lane`
6061

0 commit comments

Comments
 (0)