Dialog: Fixed #3901, #3918, #3930: Don't let the minHeight for dialogs be negative (breaks IE).

This commit is contained in:
Scott González 2009-01-29 04:12:35 +00:00
parent 4bf637bb2c
commit 9592848de3

View 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