Permalink
Browse files

Datepicker: Reset this.maxRows (rows in a month) on each row in a mul…

…ti-row datepicker.

(cherry picked from commit ed78020)
  • Loading branch information...
1 parent 57b9e9d commit 4878ed8c1aac348a8a7b99a27dc9e6baf4612503 @kborchers kborchers committed with scottgonzalez Jun 13, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 ui/jquery.ui.datepicker.js
View
1 ui/jquery.ui.datepicker.js
@@ -1471,6 +1471,7 @@ $.extend(Datepicker.prototype, {
var html = '';
for (var row = 0; row < numMonths[0]; row++) {
var group = '';
+ this.maxRows = 4;
for (var col = 0; col < numMonths[1]; col++) {
var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
var cornerClass = ' ui-corner-all';

0 comments on commit 4878ed8

Please sign in to comment.