Skip to content

Commit ed78020

Browse files
committed
Datepicker: Reset this.maxRows (rows in a month) on each row in a multi-row datepicker.
1 parent 1d984e7 commit ed78020

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
@@ -1475,6 +1475,7 @@ $.extend(Datepicker.prototype, {
14751475
var html = '';
14761476
for (var row = 0; row < numMonths[0]; row++) {
14771477
var group = '';
1478+
this.maxRows = 4;
14781479
for (var col = 0; col < numMonths[1]; col++) {
14791480
var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
14801481
var cornerClass = ' ui-corner-all';

0 commit comments

Comments
 (0)