We have an issue with the time resolution (object) that is not updated accordingly when changing Preset view.
You can run a test in the online Confi Demo (https://www.bryntum.com/examples/scheduler/configuration/)
Once in it just add these code line where the Widget Combo is registered (look at the screenshot)
onChange : ({ value }) => {
........
console.log('Preset selected..', scheduler.timeResolution.increment, scheduler.timeResolution.unit);
}
At first the time resolution of the "Days" preset is :
- scheduler.timeResolution.increment = 1
scheduler.timeResolution.unit = day
Then when you play around with either the Zoom In/Out and then switching with other preset and you come back to the Preset "Days" then the Time resolution is wrong :
- scheduler.timeResolution.increment = 1
scheduler.timeResolution.unit = hour
Our issue is we using both "scheduler.timeResolution.increment" and "scheduler.timeResolution.unit" to find the EndDate when Dropping an Item into the Scheduler :
dateStarts = me.schedule.getDateFromCoordinate(DomHelper.getTranslateX(context.element), 'round', false);
dateEnds = DateHelper.add(dateStarts, me.schedule.timeResolution.increment, me.schedule.timeResolution.unit)