Bug in displaying certain months

Certain months show the previous month greyed out then a few of its days afterwards.

This makes the calendar pretty much unuseable as some days are unselectable

See img78.imageshack.us/img78/851/17511123qb9.png for a screenshot. March 2008 also has the same problem.

The code i’ve used is very simple:

    mCal = new dhtmlxCalendarObject(‘dhtmlxCalendar’, false, {isYearEditable: true, isMonthEditable : true});


    mCal.setYearsRange(<?=date("Y")?>, <?=date("Y")+4?>);





Bug fixed. Fixed version of dhtmlxcalendar.js, which must solve your problem, attached to post

dhtmlxcalendar.js.zip (12.1 KB)