First thank you very much for the scheduler which I find an amazing tool.
I found a strange behavior with the zoom feature (using Chrome Version 76.0.3809.100 (Build officiel) (64 bits) on Mac OSX) :
- I set a startDate and a endDate to my scheduler (and all my events are within these bounds) : this prevents me from scrolling outside of this time range (which is what I want).
- However, if I zoom out (either using mouse wheel or scheduler.zoomToFit() method, which I call to initialise the scheduler in such a way that I can see everything), then the time range of my scheduler is extended, which I do not want (there is nothing to see outside of my time range and then it get difficult to find the perfect zoom level / scrolling with the mouse).
ts code :
scheduler.startDate = new Date(newVal.startDate);
scheduler.endDate = new Date(newVal.endDate);
console.log("scheduler.startDate before zoomToFit() : "+scheduler.startDate);
scheduler.zoomToFit();
console.log("scheduler.startDate after zoomToFit() : "+scheduler.startDate);
scheduler.startDate before zoomToFit() : Mon Aug 05 2019 00:00:00 GMT+0200 (heure d’été d’Europe centrale)
scheduler.startDate after zoomToFit() : Wed Jul 24 2019 00:00:00 GMT+0200 (heure d’été d’Europe centrale)
This issue can been reproduced on any example, such as : https://www.bryntum.com/examples/scheduler/basic/
-> console.log(scheduler.startDate);
rootcause-full.js:10 Sun Jan 01 2017 06:00:00 GMT+0100 (heure normale d’Europe centrale)
-> scheduler.zoomToFit();
-> console.log(scheduler.startDate);
rootcause-full.js:10 Fri Dec 30 2016 06:00:00 GMT+0100 (heure normale d’Europe centrale)
console.log(scheduler.startDate);
rootcause-full.js:10 Sun Jan 01 2017 06:00:00 GMT+0100 (heure normale d’Europe centrale)
scheduler.zoomOut();
console.log(scheduler.startDate);
rootcause-full.js:10 Fri Dec 30 2016 04:00:00 GMT+0100 (heure normale d’Europe centrale)
Of course on this basic example everything is already visible before zooming out but on this one for instance (https://www.bryntum.com/examples/scheduler/bigdataset/) you do need to zoom out to see all tasks at once, but you still do not want to extend the scheduler time range.
Maybe this is done on purpose to allow the user to escape from these ranges... but is there a way to really respect them? Thank you very much in advance and have a nice day.
Best,