DayPilot.Modal.height

The height property (number) specifies the modal dialog height in pixels. If DayPilot.Modal.autoStretch is enabled, this value becomes the minimum height.

Declaration

DayPilot.Modal.height

Default Value

200

Notes

When DayPilot.Modal.autoStretch is enabled, the dialog can grow beyond this value to avoid a scrollbar.

If DayPilot.Modal.maxHeight is set, the automatic growth stops there.

Example

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

See Also

DayPilot.Modal.autoStretch

DayPilot.Modal.maxHeight

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript