Our state of the art Gantt chart


Post by cmerrill »

Hi,

We are experiencing some issues with the zoomTo function after upgrading Bryntum Gantt from 5.1.5 to 5.2.10 (Chrome, MacOS).

https://bryntum.com/products/scheduler/docs/#Scheduler/view/mixin/TimelineZoomable#function-zoomTo

We are calling this function with a config object including preset and centerDate which has worked previously, but this is throwing an error after upgrade and preventing the chart from rendering.

{
    "preset": "monthsCustom",
    "centerDate": "2023-03-05T20:23:20.259Z"
}

The internalOnReconfigure function looks to be expecting the presence of startDate and endDate in the config, I can see adjustedStart and adjustedEnd present in the block scope but not in use at this point - see below a screenshot of the caught exception and call stack.

Image

Image

Do you have any thoughts on what the issue might be here? Has something changed regarding the expected config parameters in this version?

Thanks,
Callum


Post by alex.l »

Hi Callum,

I tried to call it in our advanced example https://bryntum.com/examples/gantt/advanced and it works well in there.
Could you please try it yourself and provide steps to reproduce this issue? if not possible to repro with online example, try to apply minimal changes to one of our examples and attach the code.

Thank you!

All the best,
Alex


Post by Animal »

Screenshot 2023-03-08 at 15.12.50.png
Screenshot 2023-03-08 at 15.12.50.png (29.78 KiB) Viewed 113 times

How did the dates come to be invalid? Need to step through the code which sets these.


Post by cmerrill »

Hi both,

Apologies for the delayed response, we didn't get to the bottom of the invalid dates unfortunately.

We did manage to get the zoomTo function working again by passing startDate and endDate parameters alongside centerDate though. Unsure whether these additional params are meant to be required if centerDate is passed but either way this is working for us so we can consider this resolved.

Thanks


Post Reply