From 52e543a63760d9e9ca17e04e796ca80646326f4a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 7 Sep 2010 09:33:09 -0400 Subject: [PATCH] Dialog: If the browser doesn't support minHeight, use height to set the minHeight. Fixes #6027 - Dialog: minHeight isn't properly handled on init in IE6. --- ui/jquery.ui.dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index a1c911b8e..c7ef437fc 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -649,7 +649,8 @@ $.widget("ui.dialog", { this.element .css(options.height === 'auto' ? { minHeight: Math.max(options.minHeight - nonContentHeight, 0), - height: 'auto' + height: $.support.minHeight ? 'auto' : + Math.max(options.minHeight - nonContentHeight, 0) } : { minHeight: 0, height: Math.max(options.height - nonContentHeight, 0) -- 2.39.5