]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Fixed #3901, #3918, #3930: Don't let the minHeight for dialogs be negative...
authorScott González <scott.gonzalez@gmail.com>
Thu, 29 Jan 2009 04:12:35 +0000 (04:12 +0000)
committerScott González <scott.gonzalez@gmail.com>
Thu, 29 Jan 2009 04:12:35 +0000 (04:12 +0000)
ui/ui.dialog.js

index e3b5bd1bce25fa387b0f651d521f6fa132375456..756c3950e93fc27e09b1f53641552b884a141cb0 100644 (file)
@@ -472,7 +472,7 @@ $.widget("ui.dialog", {
 
                this.element
                        .css({
-                               minHeight: options.minHeight - nonContentHeight,
+                               minHeight: Math.max(options.minHeight - nonContentHeight, 0),
                                height: options.height == 'auto'
                                        ? 'auto'
                                        : options.height - nonContentHeight