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

Event `snap` works incorrect when resize #9751

Open chuckn0rris opened 3 months ago

chuckn0rris commented 3 months ago

Forum post

set timeSpan to 4 months. Try to:

  1. doubleClick to create event, see it 1 month length. Another one:
  2. DragCreate an event 4 months length.
  3. resize with dragResize for 2 months, see it snapped. But shouldn't because of timeResolution

Code

const scheduler = new Scheduler({
    appendTo         : 'container',
    resources,
    events,
    startDate        : new Date(2023, 2, 1),
    endDate          : new Date(2025, 2, 1),
    viewPreset       : 'monthAndYear',
    rowHeight        : 50,
    barMargin        : 5,
    timeResolution: {
    unit: 'month',
    increment: 4
  },
    multiEventSelect : true,
    columns          : [
        { text : 'Name', field : 'name', width : 130 }
    ]
});

Video

https://github.com/user-attachments/assets/2720189e-14ad-4da2-b1e9-2f08f05af78e