Our state of the art Gantt chart
I'm having issues while calling `.zoomOut()` and `.shift(2, 'month');` not working when Gantt is zoomedIn into weekDateAndMonth preset view. I'm using emberJS.
I would expect it's not something in my code as those 2 calls work in other presetViews, but for reference:
const requiredPresetIds = {
weekAndDay: 1,
weekAndMonth: 1,
weekAndDayLetter: 1,
weekDateAndMonth: 1, ///// This one causes issues
monthAndYear: 1,
};
const presets = PresetManager.records.filter(p => requiredPresetIds[p.id]);
actions: {
viewPreviousDates() {
this.get('ganttView').shift(-2, this.get('shiftUnit'));
},
viewNextDates() {
this.get('ganttView').shift(2, 'month');
},
zoomIn() {
this.get('ganttView').zoomIn();
},
zoomOut() {
this.get('ganttView').zoomOut();
},
}
is that a bug?
Any chance you can wrap this up into a simple test case (base it on one of our samples).
What version of Gantt?
I'll try to provide a minimal sample with the issue, but in the meantime, it seems to work by changing the shift calls to be
viewPreviousDates() {
this.get('ganttView').shiftPrevious();
},
viewNextDates() {
this.get('ganttView').shiftNext();
},
Can you check what the difference would be?
version is 2.1.2
Hard to say anything with just snippets, we'll need a clear test case to understand what's going on. You're unblocked for now?