1681-engine / ui / scrollIntoView
Function: scrollIntoView() ​
ts
function scrollIntoView(
offset,
start,
size,
viewport,
content
): number;Defined in: src/ui/layout/scroll.ts:17
The smallest scroll that brings an item (start, size along the scroll axis) fully into view: a list moved by the keyboard follows the focus without jumping when the focus is already visible.
Parameters ​
| Parameter | Type |
|---|---|
offset | number |
start | number |
size | number |
viewport | number |
content | number |
Returns ​
number