diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-09 02:32:43 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-09 02:32:43 +0000 |
commit | 0413807dfb45d44ae513d8522f6bc29b42ea8db1 (patch) | |
tree | 08b2e24cf39a14a22ad9b648c28a7e4ab434261f /ui/ui.dialog.js | |
parent | 615127e8c562fc2042ff516ed7494241d35d6a66 (diff) | |
download | jquery-ui-0413807dfb45d44ae513d8522f6bc29b42ea8db1.tar.gz jquery-ui-0413807dfb45d44ae513d8522f6bc29b42ea8db1.zip |
Dialog: Don't allow the height of the content area to be negative.
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r-- | ui/ui.dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 52a9d21a6..fb3def446 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -469,7 +469,7 @@ $.widget("ui.dialog", { minHeight: Math.max(options.minHeight - nonContentHeight, 0), height: options.height == 'auto' ? 'auto' - : options.height - nonContentHeight + : Math.max(options.height - nonContentHeight, 0) }); } }); |