aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-09 02:32:43 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-09 02:32:43 +0000
commit0413807dfb45d44ae513d8522f6bc29b42ea8db1 (patch)
tree08b2e24cf39a14a22ad9b648c28a7e4ab434261f /ui/ui.dialog.js
parent615127e8c562fc2042ff516ed7494241d35d6a66 (diff)
downloadjquery-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.js2
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)
});
}
});