Using Autosize

In this section:

How to:

The Autosize Children option resizes all components on an HTML page to automatically fit the maximum available screen space on any monitor or device where it might be viewed. For example, a single component will take up one hundred percent of the available space, while two components will take up fifty percent each.

This option is used so that when your HTML page is run on different devices, components and controls do not appear off the screen and have to be scrolled to in order to use them. To accommodate this, the orientation of components may be different on different devices. For example, a report and chart that appear side-by-side when run on a desktop monitor, may appear stacked one above the other when run on a tablet. Similarly, this difference could occur when run on a 24-inch desktop monitor and a 26-inch desktop monitor.

There are autosize properties that work at both the document and component levels:

Note: You can use the Autosize options property for any HTML file, whether Autosize children is set to Yes or No.

The following image shows a report component and a chart component on the HTML canvas where Autosize children is enabled. Both components share the available space equally.

HTML canvas

You can enable autosize for an existing HTML file or create a new file with the option enabled.