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

browser freezes when resource histogram shows long span #5671

Open taauntik opened 1 year ago

taauntik commented 1 year ago

Forum post

Hi Bryntum support,

When the resource histogram is displayed with a long span like many years, the browser freezes. This issue is reproduced on https://bryntum.com/products/gantt/examples/resourcehistogram/ If the calendar is complicated, this issue will be even worse.

How to reproduce Add calendar intervals (optional.)

gantt.project.calendars[0].intervals.add([
    {
        "recurrentStartDate": "every weekday at 12:00",
        "recurrentEndDate": "every weekday at 13:00",
        "isWorking": false
    },
    {
        "recurrentStartDate": "every weekday at 17:00",
        "recurrentEndDate": "every weekday at 08:00",
        "isWorking": false
    }
]);

Zoom out the timeline.

gantt.zoomTo(0);

Shift the timespan

gantt.shiftNext();

Expected Zoom and shift can be done without having the browser freeze.

Observed The browser freezes on the step 2 and 3.

chuckn0rris commented 1 year ago

User said it crashes his app from time to time