> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# size embed event

> Emitted by Omni to give the size of embedded content, allowing you to dynamically size the iframe.

Omni emits the `size` event when a dashboard loads, and when an embedded [app](/visualize-present/apps) loads or resizes. This allows you to dynamically adjust the iframe height to fit the content.

The payload is the same for both, so an existing dashboard resize handler will size an app without changes.

An app only emits the event when it fills the whole frame, with no Omni header or navigation around it — which is what [`SINGLE_CONTENT`](/embed/setup/url-parameters/mode) mode gives you. An app shown with Omni's chrome doesn't emit it, because a size that excluded the chrome would make the host clip the page.

## Payload

```json theme={null}
{
  "width": number,
  "height": number
}
```

## Properties

<ParamField path="width" type="number">
  Width of the embedded content in the iframe.
</ParamField>

<ParamField path="height" type="number">
  Height of the embedded content in the iframe.
</ParamField>

## Example

```json theme={null}
{
  "width": 600,
  "height": 400
}
```
