Our state of the art Gantt chart


Post by rayudu.pasumarthy »

Hi,

After updating to Bryntum Gantt 5.2.8, the zoomIn/zoomOut feature completely moves the scroll to another location. This occurs when the weekends are hidden.

Steps to reproduce:

  1. Go to advanced example ( https://bryntum.com/products/gantt/examples/advanced/ )
  2. In console, paste the following code to hide Weekends:
    const oneDayInSeconds = 1000 * 60 * 60 * (24) * 1;
          gantt.timeAxis.filter({
            id: 'hideWeekendFilter',
            filterBy: tick => {
              let weekday = true;
              if ((tick.duration >= oneDayInSeconds && tick.duration <= oneDayInSeconds) && (tick.startDate.getDay() == 6 || tick.startDate.getDay() == 0)) {
                  weekday = false;
              }
              return weekday;
            }
          });
  3. Try zooming in 2-3 times using either mouse or buttons.
  4. The zoom would go to a different location

Can we maintain the centerDate/mouseFocus in scroll like it was in the previous versions?

Thanks,
Rayudu


Post by tasnim »

Thanks for your report. Reproduced! Here is the ticket for that https://github.com/bryntum/support/issues/6012
We'll check deeply.

Good Luck :),
Tasnim


Post Reply