Dialog: Don't hide the dialog in _size if it started visible. Fixes #6717 - Dialog: Adding a button makes the dialog disappear in IE6.

This commit is contained in:
Scott González 2010-12-03 08:31:06 -05:00
parent e01664a382
commit b9e34f726a

View File

@ -633,7 +633,8 @@ $.widget("ui.dialog", {
*/
var options = this.options,
nonContentHeight,
minContentHeight;
minContentHeight,
isVisible = this.uiDialog.is( ":visible" );
// reset content sizing
this.element.show().css({
@ -665,7 +666,9 @@ $.widget("ui.dialog", {
} else {
this.uiDialog.show();
var autoHeight = this.element.css( "height", "auto" ).height();
if ( !isVisible ) {
this.uiDialog.hide();
}
this.element.height( Math.max( autoHeight, minContentHeight ) );
}
} else {