From: Scott González Date: Mon, 22 Nov 2010 16:40:11 +0000 (-0500) Subject: Datepicker: Don't use ui-helper-hidden-accessible for initial hiding. X-Git-Tag: 1.8.7~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a4d54b4d7782fbf3483bbfdf92627c34cf97eb46;p=jquery-ui.git Datepicker: Don't use ui-helper-hidden-accessible for initial hiding. --- diff --git a/themes/base/jquery.ui.datepicker.css b/themes/base/jquery.ui.datepicker.css index 9494fed74..f9098e3a7 100644 --- a/themes/base/jquery.ui.datepicker.css +++ b/themes/base/jquery.ui.datepicker.css @@ -7,7 +7,7 @@ * * http://docs.jquery.com/UI/Datepicker#theming */ -.ui-datepicker { width: 17em; padding: .2em .2em 0; } +.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; } .ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } .ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } .ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 739db1007..4ba478903 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -107,7 +107,7 @@ function Datepicker() { autoSize: false // True to size the input for the date format, false to leave as is }; $.extend(this._defaults, this.regional['']); - this.dpDiv = $('
'); + this.dpDiv = $('
'); } $.extend(Datepicker.prototype, { @@ -272,6 +272,7 @@ $.extend(Datepicker.prototype, { this._setDate(inst, this._getDefaultDate(inst), true); this._updateDatepicker(inst); this._updateAlternate(inst); + inst.dpDiv.show(); }, /* Pop-up the date picker in a "dialog" box.