Skip to content

Commit 4878ed8

Browse files
kborchersscottgonzalez
authored andcommitted
Datepicker: Reset this.maxRows (rows in a month) on each row in a multi-row datepicker.
(cherry picked from commit ed78020)
1 parent 57b9e9d commit 4878ed8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,7 @@ $.extend(Datepicker.prototype, {
14711471
var html = '';
14721472
for (var row = 0; row < numMonths[0]; row++) {
14731473
var group = '';
1474+
this.maxRows = 4;
14741475
for (var col = 0; col < numMonths[1]; col++) {
14751476
var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
14761477
var cornerClass = ' ui-corner-all';

0 commit comments

Comments
 (0)