The scrollWithPage property (boolean) specifies whether the modal dialog scrolls with the page or stays at the same position using fixed positioning.
Declaration
DayPilot.Modal.scrollWithPageDefault Value
trueNotes
Set this property to false to keep the dialog in the same viewport position while the document scrolls.
Example
const modal = new DayPilot.Modal({
scrollWithPage: false,
// ...
});
modal.showUrl("/dialog.html");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot