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

Changing presets changes the time range #9938

Open chuckn0rris opened 3 weeks ago

chuckn0rris commented 3 weeks ago

Change presets again and again will move visible date range forward for years.

const presets = [
    PresetManager.getById('weekAndDay'),
    PresetManager.getById('weekAndDayLetter'),
    PresetManager.getById('monthAndYear'),
    PresetManager.getById('year'),
]

const scheduler = new SchedulerPro({
    appendTo  : 'container',
    viewPreset: 'weekAndDayLetter',
    presets,
    tbar: {
        items: [
            '->',
            {
                type: 'viewpresetcombo',
                presets: presets.map(x => x.id),
            },
        ],
    },

Forum post

I'm using a Resource Histogram in my app and a bug was logged that changing the view presets and nothing else results in the date range sliding into the future with no way of sliding it back.

2024-09-02_08-08-27.png

2024-09-02_08-12-06.png

2024-09-02_08-12-52.png

Note there is no way to get back to the original date using scrollbars or the preset combo. 2024-09-02_08-08-27.png 2024-09-02_08-12-06.png 2024-09-02_08-12-52.png