Initialization Option Author API

height

Controls the fixed height of the Item preview pane. By default, the Item preview will use all of the available space to the bottom of the browser viewport.

You would want to use this to show scrollbars for previewing Items that have very long content by fixing the height of the preview pane, for example. This option could also be useful for cases where Items are previewed in small modals or dialogs in your application.

Note The enable scrolling for long content option must be enabled for the current Item for this option to take effect.

Examples

// Set the Item preview pane to a fixed 400 pixel height container
var initializationOptions = {
    "config": {
        "container": {
            "height": 400
        }
    }
};

Values

Request object key config.container.height

Type number

The height, in pixels, of the Item preview pane.

Related articles

Was this article helpful?