aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-04 14:09:37 -0700
committerScott González <scott.gonzalez@gmail.com>2011-05-04 14:09:37 -0700
commit116acb4cb28c4a091547648132316b7f8e9e6072 (patch)
tree2f3e70069b1874873e18095f149771889061cb2f /ui/jquery.ui.datepicker.js
parent511b86b31efd16e2966a1155cdb47b951f01c204 (diff)
parentfc97ccd398b60525fd9e4c0e9aa1f51048984394 (diff)
downloadjquery-ui-116acb4cb28c4a091547648132316b7f8e9e6072.tar.gz
jquery-ui-116acb4cb28c4a091547648132316b7f8e9e6072.zip
Merge pull request #200 from kzys/trac-6704-2
Fixed #6704 - Display overflow when multiple datepickers have different numberOfMonths.
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index d49fb7781..92c005d19 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -685,10 +685,9 @@ $.extend(Datepicker.prototype, {
var numMonths = this._getNumberOfMonths(inst);
var cols = numMonths[1];
var width = 17;
+ inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width('');
if (cols > 1)
inst.dpDiv.addClass('ui-datepicker-multi-' + cols).css('width', (width * cols) + 'em');
- else
- inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width('');
inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') +
'Class']('ui-datepicker-multi');
inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') +