Page 1 of 1

[SchedulerPro] Time scale drawn incorrectly at certain zoom levels

Posted: Thu Jan 26, 2023 7:35 pm
by jamesb

Hello,

Our QA team noticed the following at certain zoom levels:

  • date labels on the time scale may overlap / be truncated,

  • the time scale and the grid may appear out of sync.

This can be reproduced on the inline-data example: https://bryntum.com/products/schedulerpro/examples/inline-data/
Is it possible to improve the time scale readability and alignment with the grid at these zoom levels?

truncated_labels2.png
truncated_labels2.png (7.69 KiB) Viewed 585 times
truncated_labels.png
truncated_labels.png (13.5 KiB) Viewed 585 times
out_of_sync.png
out_of_sync.png (13.9 KiB) Viewed 585 times

Thank you,
J


Re: [SchedulerPro] Time scale drawn incorrectly at certain zoom levels

Posted: Thu Jan 26, 2023 8:06 pm
by marcio

Hey J,

You can play with the viewPreset to display the Scheduler in a more readable way - https://bryntum.com/products/schedulerpro/docs/api/Scheduler/preset/ViewPreset

I believe with that you can improve the time scale readability and alignment with the grid. :)


Re: [SchedulerPro] Time scale drawn incorrectly at certain zoom levels

Posted: Thu Jan 26, 2023 8:15 pm
by jamesb

Hi Márcio,

Like on the inline-data example, I applied the 'hourAndDay' view preset.
At most zoom levels, it displays correct "time steps" and stays in sync with the grid (which is the expected behavior).

Can we not expect the feature to behave just as well at all zoom levels, without "playing" with other view presets? :)

Thank you,
J


Re: [SchedulerPro] Time scale drawn incorrectly at certain zoom levels

Posted: Fri Jan 27, 2023 4:50 am
by alex.l

Hi J,

Actually that is a bug. Of course, it should be working better in this case. This happens when forceFit is enabled, so for now, if applicable, try to not use it. Here is a ticket to track the status https://github.com/bryntum/support/issues/6064


Re: [SchedulerPro] Time scale drawn incorrectly at certain zoom levels

Posted: Fri Feb 03, 2023 7:35 pm
by jamesb

Thank you Alex and Márcio!

The incorrect synching between grid and time scale is indeed fixed with forceFit disabled.
However, I noticed there are still zoom levels where the date labels are slightly truncated (like on the first screenshot of my initial post).

Best regards,
J


Re: [SchedulerPro] Time scale drawn incorrectly at certain zoom levels

Posted: Fri Feb 03, 2023 7:41 pm
by marcio

Hey jamesb,

Thanks for reporting that, I added a note to the ticket for our team to investigate. :)