# ViewportOffset

interface

The offset (in pixels) of the viewport from every direction used when positioning a sticky toolbar or other absolutely positioned UI elements.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-ui/src/editorui/editorui.ts#L815)

<a id="properties">

## Properties

<a id="member-bottom">

### `bottom?: number` _(inherited)_

The bottom offset in pixels.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/editor/editorconfig.ts#L1723)

<a id="member-left">

### `left?: number` _(inherited)_

The left offset in pixels.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/editor/editorconfig.ts#L1728)

<a id="member-right">

### `right?: number` _(inherited)_

The right offset in pixels.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/editor/editorconfig.ts#L1733)

<a id="member-top">

### `top?: number` _(inherited)_

The top offset in pixels.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/editor/editorconfig.ts#L1738)

<a id="member-visualTop">

### `visualTop?: number`

The top offset of the visual viewport.

This value is calculated based on the visual viewport position.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-ui/src/editorui/editorui.ts#L822)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
