Calling scheduler.templates.timeline_scalex_class twice?

Hi there,

When I checked it after running the option of timeline_scalex_class, I realized of adding the css class “extra-time” of two.

image

my codes:

scheduler1.templates.timeline_scalex_class = (date) => 
([0, 1, 2, 3, 4, 5, 22, 23].includes(date.getHours()) ? 'extra-time' : '')

  .extra-time {
    color: lightgray;
    background-color: ghostwhite;
  }

However, it seems its option calls the function with the same datetime for 2 times.
Why would it be called twice like that…?

Thank you for your kind support in advance.

meicom

Hello @meicom ,

It’s known issue, which is occurs cause of some additional repaints of the timeline view. Unfortunately, there is no ETA when it will be fixed, but I will notify you of any updates.

Kind regards,

1 Like

Hi Siarhei,

I got it, thank you for the kind response.

meicom