DayPilot.Modal.autoStretch

The autoStretch property (boolean) specifies whether the modal dialog height should be increased automatically to avoid a scrollbar. The height is increased until DayPilot.Modal.maxHeight is reached.

Declaration

DayPilot.Modal.autoStretch

Default Value

true

Example

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

See Also

DayPilot.Modal.maxHeight

DayPilot.Modal.showUrl()

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript