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

Returning false from timeAxis.beforeReconfigure listener breaks zooming #3693

Open jsakalos opened 2 years ago

jsakalos commented 2 years ago

Steps to reproduce:

  1. https://bryntum.com/examples/scheduler/infinite-scroll/
  2. in console: scheduler.timeAxis.on('beforereconfigure', () => false);

Scroll limiting works but zoom does not.

before-reconfigure gif

Forum post

Hi,

In scheduler pro, user can zoom out with scroll to 100 years range. I want only to zoom out Calendar start & end dates range.

Is this possible?

Thanks

matsbryntse commented 10 months ago

This event should probably be made private. And fix would be to add support for min/max zoom dates https://github.com/bryntum/support/issues/3870