bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Gantt throws error when rendered with `infiniteScroll: true` and splitter offscreen #9982

Closed kronaemmanuel closed 1 month ago

kronaemmanuel commented 2 months ago

From initial investigation, it looks like it's due to infiniteScroll. Setting it to false gets rid of the issue.

Forum post

Hi.

See attached video and sample project. Gantt throws an error when viewport is resized to overlap splitter's position.

We can resolve the problem by ensuring the project does not span summer/winter time OR disable infinite scroll OR refrain from registering our own calendar.

While this may seem like an unlikely problem, we have lots of customers with 10+ columns and resolutions such as 1980 x 1024 on their laptops, so they often experience this error, and we take down the entire app when it misbehaves to prevent changes from being made with an app in a broken state, so this is critical to us.

Are we doing anything wrong or is this a bug that needs fixing in Gantt ?

The sample is based on Gantt v. 5.6.11, but the crash also happens with Gantt v. 6.0.5.