diff options
author | Ziling Zhao <zizhao@cisco.com> | 2010-04-19 15:42:34 -0700 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-30 15:14:48 -0400 |
commit | c5770c0e84b786ebe55a60034da0ff06dc02f422 (patch) | |
tree | e9e379ad55242652119fb96d02bd56f16e2c3768 /ui/jquery.ui.dialog.js | |
parent | 90caa93a9b4b9b894b055cfb8dae0661ac7788b0 (diff) | |
download | jquery-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.js | 4 |
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({ |