Strange behavior that looks like a bug. I've implemented a monthly view using following code. The idea is to show the whole month on one screen.
presets: [
{
id: 'month',
base: 'dayAndWeek',
tickHeight: 20,
}
],
this.schedulerPro.instance.zoomTo({
preset: 'month',
startDate: startDate, // first day of requested month
endDate: endDate // first day of next month
});
It works well except for October 2022 and October 2023. October 2021 does work fine.
When it fails, I don't see that timeline is updated, and events are also shown for the previous month. But if I do any layout update (scrollbar, splitter, browser size), it shows proper info. It only happens in vertical mode.
I've tried to trigger some refresh for scheduler, but didn't find any function for it.
Re: [ANGULAR] zoom bug
Posted: Wed Sep 28, 2022 4:53 pm
by marcio
Hello eugenem,
Could you please share what your configuration looks like?? You mentioned that's happening in vertical mode, so we would need a better context about that. If you could assemble a sample with the behavior that you described would be very nice to help you with that.
Re: [ANGULAR] zoom bug
Posted: Sun Oct 02, 2022 4:58 pm
by eugenem
hmm, it's complex to reproduce.
But I saw another thing: when there are events in October, it works fine. Only if there are no events at all, it fails to update the vertical axis.
Try to upgrade your app if you used not recent version.
Re: [ANGULAR] zoom bug
Posted: Tue Oct 11, 2022 12:58 pm
by eugenem
cannot reproduce at your demo
now I see another issue: events from the previous month are shown at the current one when I go over months (in case the current month has no events of itself)
look, I think the simplest way is to refresh the scheduler manually in a few ms. how do I do this?
Glad to hear, but if you'll have time in future and opportunity to make a test case, we would be happy to check that deeply. In case it's a bug in our code, it needs to be fixed.