Page 1 of 1

[ANGULAR] Zoom In With Dependencies Stuck The Scheduler.

Posted: Tue Feb 07, 2023 10:47 am
by tomerPlanit

Hi I use scheduler 5.2.9 with angular 14.
I found that if you zoom in with a lot of dependencies the system is Stuck.
For check it:
1) Enter to your big data set example.
2) Move to custom.
3) Put 100 resources and 100 events.
4) Select the dependencies feature.
5) Try to zoom in to last zoo level by time line context menu zoom in slider.

You will stuck the scheduler(You have some problem in the forum to upload screen png).


Re: [ANGULAR] Zoom In With Dependencies Stuck The Scheduler.

Posted: Tue Feb 07, 2023 11:55 am
by alex.l

Thank you for the report and clear steps to reproduce, here is the ticket for this problem: https://github.com/bryntum/support/issues/6119


Re: [ANGULAR] Zoom In With Dependencies Stuck The Scheduler.

Posted: Wed Feb 08, 2023 11:16 am
by tomerPlanit

Is it possible to know from the view preset what it's zoom level?


Re: [ANGULAR] Zoom In With Dependencies Stuck The Scheduler.

Posted: Wed Feb 08, 2023 11:39 am
by tasnim

Re: [ANGULAR] Zoom In With Dependencies Stuck The Scheduler.

Posted: Wed Feb 08, 2023 11:43 am
by tomerPlanit

It is not help because I need the check before the scheduler enter to the zoom.
I am listening to "beforePresetChange", and in the event I have the future view preset.
As I understand from the documentation each view preset is zoom level, so I need its index no?


Re: [ANGULAR] Zoom In With Dependencies Stuck The Scheduler.

Posted: Wed Feb 08, 2023 12:33 pm
by tasnim

Then you could use the parentIndex of that viewPreset
https://bryntum.com/products/scheduler/docs/api/Scheduler/preset/ViewPreset#field-parentIndex

chrome_xL5ltwQQME.gif
chrome_xL5ltwQQME.gif (412.61 KiB) Viewed 271 times

And here is the code I used

scheduler.on('beforePresetChange', (event) => {
    console.log(event.to.parentIndex);
})

Re: [ANGULAR] Zoom In With Dependencies Stuck The Scheduler.

Posted: Wed Feb 08, 2023 12:42 pm
by tomerPlanit

Thanks a lot Tasnim works fine