Skip to main content

The Viewport object

Information about the canvas size in the current viewport.

Properties

All properties for Viewport with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.

height

number

The height of the canvas. This value increases as the layout increases vertically and includes content that must be scrolled into view.


width

number

The width of the canvas. This value is responsive to the horizontal space available.