Skip to content
Permalink
Browse files

datepicker: #4032 - Incorrect layout in multiple month rows. I notice…

…d the static tests were recently updated with a row-break so I have added the row-break fix for now so it will be ready for the release. We should seriously consider inline-block.
  • Loading branch information
Ca-Phun Ung
Ca-Phun Ung committed Feb 1, 2009
1 parent ce0daae commit 1866e1382f7ef89721432cb75e505356f067f99d
Showing with 24 additions and 2 deletions.
  1. +21 −0 tests/visual/datepicker/multimonth.html
  2. +1 −1 themes/base/ui.datepicker.css
  3. +2 −1 ui/ui.datepicker.js
@@ -0,0 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<title>Datepicker Visual Test : Default</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
<script type="text/javascript" src="../../../jquery-1.3.1.js"></script>
<script type="text/javascript" src="../../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../../ui/ui.datepicker.js"></script>
<script type="text/javascript">
$(function() {
$('#datepicker').datepicker({numberOfMonths: [4,3], showButtonPanel: true });
});
</script>
</head>
<body>

<div id="datepicker"></div>

</body>
</html>
@@ -33,7 +33,7 @@
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
.ui-datepicker-row-break { clear:left; width:100%; }
.ui-datepicker-row-break { clear:both; width:100%; }

/* RTL support */
.ui-datepicker-rtl { direction: rtl; }
@@ -1400,7 +1400,8 @@ $.extend(Datepicker.prototype, {
drawMonth = 0;
drawYear++;
}
calender += '</tbody></table>' + (isMultiMonth ? '</div>' : '');
calender += '</tbody></table>' + (isMultiMonth ? '</div>' +
((numMonths[0] > 0 && col == numMonths[1]-1) ? '<div class="ui-datepicker-row-break"></div>' : '') : '');
group += calender;
}
html += group;

0 comments on commit 1866e13

Please sign in to comment.
You can’t perform that action at this time.