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:38:47 +00:00
parent b44f0c2f41
commit 7d44c81805

View File

@ -1100,7 +1100,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;