Datepicker: Reset this.maxRows (rows in a month) on each row in a multi-row datepicker.

This commit is contained in:
kborchers 2011-06-13 10:54:40 -05:00
parent 1d984e76b7
commit ed7802090f

View File

@ -1475,6 +1475,7 @@ $.extend(Datepicker.prototype, {
var html = ''; var html = '';
for (var row = 0; row < numMonths[0]; row++) { for (var row = 0; row < numMonths[0]; row++) {
var group = ''; var group = '';
this.maxRows = 4;
for (var col = 0; col < numMonths[1]; col++) { for (var col = 0; col < numMonths[1]; col++) {
var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
var cornerClass = ' ui-corner-all'; var cornerClass = ' ui-corner-all';