The watchWidthChanges property (boolean) enables automatic detection of dimension changes in the JavaScript Scheduler caused by DOM updates and window size changes. When a change is detected, the Scheduler updates its UI and fires the onScroll event if applicable.
DayPilot.Scheduler.watchWidthChangestrueTurning off the detection may result in smoother animations of dimension changes, but you need to fix the UI manually by calling DayPilot.Scheduler.show() once the animation is complete.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
watchWidthChanges: false,
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
watchWidthChanges: false,
// ...
};React
<DayPilotScheduler
watchWidthChanges={false}
{/* ... */}
/>Vue
<DayPilotScheduler
:watchWidthChanges="false"
<!-- ... -->
/>