Year view

I have a scheduler page with year view enabled in it . After setting view as year view , for each month starting day is coming as Thursday. (Please find the attached image).
Same issue is happening for the mini calender also.

I have noticed that the start day of each month its taking as the current day in year view.
Eg: if today is saturday ,its taking saturday as start day for all month in year view, and so on.

FYI(in uploaded image its starting on thursday)

If load a year view without any data its coming properly , and the problem persists when pressing the ctrl+plus button(resize) , in this case the dates are getting rearranged like the uploaded image.

please suggest me to resolve this issue.

Thank you :slight_smile:
js&image.zip (206 KB)

Hello,
the first day of week has changed because you redefine scheduler.date.week_start in your code - it affects all views that display weeks.

Regarding sizes of headers in year view screencast.com/t/EKlm5ocEc
, these elements takes height from scheduler.xy.scale_height config. You can use onViewChange event to correct it when entering year view
docs.dhtmlx.com/scheduler/api__s … event.html

Hi Aliaksandr,

  It worked after removing [code]

scheduler.date.week_start
[/code] .

thank you :slight_smile: