Skip to content

Commit 1845015

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 ac459ff.
1 parent c89bbc1 commit 1845015

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
@@ -1494,7 +1494,7 @@ $.extend(Datepicker.prototype, {
14941494
if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth)
14951495
inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);
14961496
var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
1497-
var numRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate
1497+
var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
14981498
var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
14991499
for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows
15001500
calender += '<tr>';

0 commit comments

Comments
 (0)