[INFO REQ] Changing ViewPreset adjusts timeline startDate and endDate
Posted: Thu Aug 18, 2022 11:13 am
by josevmichael
startDate and endDate on Gantt Chart changing when viewPreset or zoomLevel changes.
For the zoom in and zoom out I have written the below but its taking so much time to reflect the change in the Gantt chart. Is there any other way to do it better.
It has to really. Otherwise the timeline might end up tiny (if you zoom right out to a years-based ViewPreset), or might end up enormous if you zoom right in to the ViewPreset with the most granular view.
Re: [INFO REQ]
Posted: Thu Aug 18, 2022 11:26 am
by josevmichael
can you please elaborate it with a sample code
Re: [INFO REQ] Changing ViewPreset adjusts timeline startDate and endDate
Posted: Thu Aug 18, 2022 4:52 pm
by marcio
Hey Jose,
As Animal suggested, for performance reasons we have that set automatically if no configuration is set. Otherwise, we'll have something like the screenshot attached.
What's the expected behavior that you want to achieve??
Re: [INFO REQ] Changing ViewPreset adjusts timeline startDate and endDate
Posted: Mon Aug 22, 2022 2:38 pm
by josevmichael
Thanks for your reply, I have got the solution by setting zoomKeepsOriginalTimespan: true,