fix/workaround for bug #2658 - Monthview navigation issue with Google Chrome (Linux 5.0.x beta)

see http://code.google.com/p/chromium/issues/detail?id=43973
This commit is contained in:
Ralf Becker 2010-06-17 10:40:20 +00:00
parent 6c91da69d6
commit b805eedcf8

View File

@ -1099,7 +1099,7 @@ Calendar.prototype._init = function (firstDayOfWeek, date) {
var day1 = (date.getDay() - this.firstDayOfWeek) % 7;
if (day1 < 0)
day1 += 7;
date.setDate(-day1);
date.setDate(0-day1);
date.setDate(date.getDate() + 1);
var row = this.tbody.firstChild;