This is a two part issue.
I am trying to get the schedule to adjust appointments with the resizing of the browser window. I have tried two different methods.
1. Let schedule try to adjust self and with my current setup the appointments lose position in resource area (see images in zip)
2. using an event listener to refresh the calendar generates an error
code for refresh:
window.addEventListener('resize', function(e){
if($(window).width() < 1200){var cellWd = '240px';}
else{var cellWd = false;}
var calOpen = $("#calendar-area").data('ejSchedule');
if(calOpen){
$("#calendar-area").ejSchedule({cellWidth: cellWd});
calOpen.refresh();
}
});
generates this error when refresh is called
Uncaught TypeError: this._appointmentSettings.resourceFields.split(...)[h].trim is not a function(…)
_addAppData @ ej.web52.all.min.js:10
_multipleDayApp @ ej.web52.all.min.js:10
_appointmentProcessing @ ej.web52.all.min.js:10
_dataProcessing @ ej.web52.all.min.js:10
_bindAppointmentsData @ ej.web52.all.min.js:10
_init @ ej.web52.all.min.js:10refresh @ ej.web52.all.min.js:10
(anonymous function) @ portal.core.js:652
line 652 is the calOpen.refresh(); in above code.
let me know if you need more information that I can provide to try and fix this issue.
Thanks
Attachment:
resize1_b240cc46.zip