Customizing ui.calendar using dayTemplate function gives weird output

Hi all,

I’m trying to customize ui.calendar by adding “Morning”, “Afternoon”, “Night” into the day boxes but getting weird outputs where the first week of the month will remain unchanged, the 2nd week will only get “Morning”, the 3rd week will only get “Morning” and “Afternoon” and only the 4th week onwards will get all the three lines. Any idea why and how to fix?

http://webix.com/snippet/553c0b85

TQ

Was caused by styling, check the updated snippet

http://webix.com/snippet/b89f7339