The scrollWithPage property (boolean) specifies whether the modal dialog scrolls with the page or stays at the same position using fixed positioning.
DayPilot.Modal.scrollWithPagetrueSet this property to false to keep the dialog in the same viewport position while the document scrolls.
const modal = new DayPilot.Modal({
scrollWithPage: false,
// ...
});
modal.showUrl("/dialog.html");