Fixed size calculations for dialogs.

Fixes #5392 - Dialog explicit height doesn't match given value from set option.
This commit is contained in:
Scott González 2010-03-25 21:58:08 -04:00
parent 9786a19c82
commit b297b3fa6a

View File

@ -622,8 +622,11 @@ $.widget("ui.dialog", {
// reset content sizing
// hide for non content measurement because height: 0 doesn't work in IE quirks mode (see #4350)
this.element.css('width', 'auto')
.height(0);
this.element.css({
width: 'auto',
minHeight: 0,
height: 0
});
// reset wrapper sizing
// determine the height of all the non-content elements