DayPilot.Modal.autoStretchFirstLoadOnly

The autoStretchFirstLoadOnly property (boolean) specifies whether the modal dialog height should be updated on iframe content reload. If set to true, the height is updated only once.

Declaration

DayPilot.Modal.autoStretchFirstLoadOnly

Default Value

false

Notes

Use this option together with DayPilot.Modal.autoStretch when the modal content is loaded in an iframe and later reloads should not trigger additional height updates.

Example

const modal = new DayPilot.Modal({
  autoStretch: true,
  autoStretchFirstLoadOnly: true,
  // ...
});
modal.showUrl("/dialog.html");

See Also

DayPilot.Modal.autoStretch

DayPilot.Modal.showUrl()

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript