Skip to content

Commit 52e543a

Browse files
committed
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.
1 parent 99694e6 commit 52e543a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,8 @@ $.widget("ui.dialog", {
649649
this.element
650650
.css(options.height === 'auto' ? {
651651
minHeight: Math.max(options.minHeight - nonContentHeight, 0),
652-
height: 'auto'
652+
height: $.support.minHeight ? 'auto' :
653+
Math.max(options.minHeight - nonContentHeight, 0)
653654
} : {
654655
minHeight: 0,
655656
height: Math.max(options.height - nonContentHeight, 0)

0 commit comments

Comments
 (0)