The stretch() method adjusts the modal dialog dimensions according to the content to avoid scrollbars if possible.
Declaration
DayPilot.Modal.stretch(): voidNotes
The 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.
Example
DayPilot.Modal.stretch();See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot