# fromVirtualScrollTop

> _Since v2.13.0_

Translate a virtual scroll offset (raw row-content space) into a native
`scrollTop` value (spacer space). Identity when the mapping is not capped.

```ts
function fromVirtualScrollTop(virtualTop: number, mapping: ScrollMapping): number
```

## Parameters

| Name | Type | Description |
| ---- | ---- | ----------- |
| `virtualTop` | <code>number</code> |  |
| `mapping` | <code><a href="/grid/api/plugin-development/interfaces/scrollmapping/">ScrollMapping</a></code> |  |
