Dialog: Don't allow the height of the content area to be negative.

This commit is contained in:
Scott González
2009-02-09 02:32:43 +00:00
parent 615127e8c5
commit 0413807dfb

View File

@@ -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)
});
}
});