Page 1 of 1

[REACT] Error while zoomToFit on histogram while scheduler is hidden

Posted: Wed Sep 21, 2022 1:03 pm
by peter4ef

Got an error while trying to run zoomToFit on histogram meanwhile zoomToFit is working on scheduler for the same project.

Uncaught TypeError: Cannot read properties of undefined (reading 'getTotalTimeSpan')
at ResourceHistogram.zoomToFit (gantt.module.js:165098:1)
at Button.onAction (ToolBar.js:151:1)
at Button.callback (gantt.module.js:2962:1)
at Button.trigger (gantt.module.js:6062:1)
at Button.onInternalClick (gantt.module.js:36775:1)
at HTMLButtonElement.handler (gantt.module.js:17897:1)
zoomToFit @ gantt.module.js:165098
onAction @ ToolBar.js:151
callback @ gantt.module.js:2962
trigger @ gantt.module.js:6062
onInternalClick @ gantt.module.js:36775
handler @ gantt.module.js:17897

it's not working for demo project as well - https://www.bryntum.com/examples/scheduler-pro/resourcehistogram/

Let me know if there any workaround


Re: [REACT] Error while zoomToFit on histogram while scheduler is hidden

Posted: Wed Sep 21, 2022 4:05 pm
by marcio

Hello peter4ef,

Thanks for the report, it's a bug. I created a ticket for it https://github.com/bryntum/support/issues/5290