Launch modal window

This page demonstrates the resizing of a modal dialog to the size of its contents.
Open a modal dialog with a report of form and look how the size adapts to the size of the contents.
The resizing is performed using an Apex plug-in that can be downloaded from the plug-ins section of apex.world
For the report dialog the plug-in is applied at Page Load and in the After refresh of the report
For the form dialog the plug-in is applied at Page Load and in the On change of the Number of items item.
The plug-in function both for Apex 5.0 and 5.1.

Click on Modal report or Modal form to see the plug-in in action.
Apex 5.1 also performs resizing of the modal dialog. You can observe this behavior by de-activating the plug-in.
More information is found on this blogpost.