aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.datepicker.js
diff options
context:
space:
mode:
authorRichard D. Worth <rdworth@gmail.com>2011-07-19 07:59:21 -0400
committerRichard D. Worth <rdworth@gmail.com>2011-07-19 07:59:21 -0400
commitb8af0d1f7505dd5e56319a11bbd14f1e381b36b9 (patch)
treedfaf80802fd7d845064ed791f3075042fcc14f05 /ui/jquery.ui.datepicker.js
parent416bc6f9e871c6c0e91b010ba941c33ef19b442b (diff)
downloadjquery-ui-b8af0d1f7505dd5e56319a11bbd14f1e381b36b9.tar.gz
jquery-ui-b8af0d1f7505dd5e56319a11bbd14f1e381b36b9.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
Diffstat (limited to 'ui/jquery.ui.datepicker.js')
-rw-r--r--ui/jquery.ui.datepicker.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index aeadde4ee..87f9bd950 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.