Hi DayPilot Support,
I was using heightSpec = Parent100Pct and need to recalculates the dimensions when other element was hide else the scheduler will leaves many blank space below
I was using DayPilot scheduler show() to do it and write it as a function to let button trigger it
https://api.daypilot.org/daypilot-scheduler-show/
@ViewChild('scheduler', { static: false }) scheduler: DayPilotSchedulerComponent;
public reSizeScheduler() {
this.scheduler.control.show();
}
However when i trigger this reSizeScheduler() will hit error of
ERROR TypeError: Cannot read property 'control' of undefined