The stretch() method adjusts the modal dialog dimensions according to the content to avoid scrollbars if possible.
DayPilot.Modal.stretch(): voidThe autoStretch mode is enabled by default. However, you may still want to call this method manually after content page changes, for example after expanding a collapsed element.
DayPilot.Modal.stretch();