onScaleAdd problem

Hello.

I’m using onScaleAdd to change CSS properties of cells inside year view. The problem is onScaleAdd does not process all divs of a month, see example. onScaleAdd should pass 28-11-2016, 29-11-2016, 30-11-2016 divs from November (blue box) but I get the divs from December, which are btw. non active. How to solve this issue?
Using dhtmlxScheduler v.4.2.0 Stardard
Thank you.


Hello,

This method processes all dates and there are 3 additional days of November before start of December.
image.prntscr.com/image/d8e8811e … a332e4.png

docs.dhtmlx.com/scheduler/snippet/33732d2a
I think you need to check dates. If it certain date has already been used, ignore it at the second time.

Thanks for the tip. It works now.