aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorZiling Zhao <zizhao@cisco.com>2010-04-19 15:42:34 -0700
committerScott González <scott.gonzalez@gmail.com>2010-07-30 15:14:48 -0400
commitc5770c0e84b786ebe55a60034da0ff06dc02f422 (patch)
treee9e379ad55242652119fb96d02bd56f16e2c3768 /ui/jquery.ui.dialog.js
parent90caa93a9b4b9b894b055cfb8dae0661ac7788b0 (diff)
downloadjquery-ui-c5770c0e84b786ebe55a60034da0ff06dc02f422.tar.gz
jquery-ui-c5770c0e84b786ebe55a60034da0ff06dc02f422.zip
Dialog: modified so that minWidth is respected. Fixes #5531 - dialog width should be at least minWidth on creation.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index df11e2190..44f5cbbbc 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -628,6 +628,10 @@ $.widget("ui.dialog", {
height: 0
});
+ if (options.minWidth > options.width) {
+ options.width = options.minWidth;
+ }
+
// reset wrapper sizing
// determine the height of all the non-content elements
nonContentHeight = this.uiDialog.css({