diff options
author | Richard D. Worth <rdworth@gmail.com> | 2011-07-19 07:59:21 -0400 |
---|---|---|
committer | Richard D. Worth <rdworth@gmail.com> | 2011-07-19 08:12:41 -0400 |
commit | c81bfb9815405cd0a1da41ffbfe97bfc0f4ab11b (patch) | |
tree | 5c888a11730664a4ffde34e48e1461d277db084a /ui/jquery.ui.datepicker.js | |
parent | ab3b78e9eb6d6231e68d29aa3b8b7654d732eb52 (diff) | |
download | jquery-ui-c81bfb9815405cd0a1da41ffbfe97bfc0f4ab11b.tar.gz jquery-ui-c81bfb9815405cd0a1da41ffbfe97bfc0f4ab11b.zip |
Datepicker: show inline datepicker setting explicit display:block instead of using .show() in case it is disconnected. Fixed #7552 - A Datepicker created on a detached div has zero height
(cherry picked from commit b8af0d1f7505dd5e56319a11bbd14f1e381b36b9)
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 19696236c..921f48760 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -285,7 +285,9 @@ $.extend(Datepicker.prototype, { if( inst.settings.disabled ) { this._disableDatepicker( target ); } - inst.dpDiv.show(); + // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements + // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height + inst.dpDiv.css( "display", "block" ); }, /* Pop-up the date picker in a "dialog" box. |