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
53 stars 6 forks source link

ResourceHistogram w/ NonWorkingTime feature changes project default calendar intervals #9806

Closed arcady-zherdev closed 3 weeks ago

arcady-zherdev commented 1 month ago

ResourceHistogram w/ NonWorkingTime feature enabled changes project default calendar intervals. The feature adds weekends as non working time.

That code is not supposed to work for SchedulerPro/Gantt dataset it was made for basic Scheduler. The reason is this check in NonWorkingTimeMixin class:

        if (
            // Might have been set up by NonWorkingTime / EventNonWorkingTime already
            !this.autoGeneratedWeekends &&
            // For basic scheduler...
            !client.isSchedulerPro &&
            !client.isGantt &&

Instead of checking view type it should check project type.