Skip to content

Commit 804ba0a

Browse files
committed
Revert "Datepicker: Fixed #7043 - Using multiple months always renders 6 rows of dates even if only 5 are needed."
This reverts commit 5e1032e.
1 parent 2b84107 commit 804ba0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ $.extend(Datepicker.prototype, {
14901490
if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth)
14911491
inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
14921492
var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
1493-
var numRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate
1493+
var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
14941494
var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
14951495
for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows
14961496
calender += '<tr>';

0 commit comments

Comments
 (0)