I have a master detail kind of scenario. The detail (edit form) will be open in a Modal Dialog according to the setting below
function OpenDialog(pageUrl, title) {
var fullUrl = relativeUrl + pageUrl;
var options = { showMaximized: true, url: fullUrl, title: title, dialogReturnValueCallback: DialogCallback };
SP.UI.ModalDialog.showModalDialog(options);
}
The problem is when the user click the update button in the modal dialog, after postback the modal dialog window size will shrink. It's like the showMaximized value is not set. How do I make sure that the Modal Dialog window size will remain the same after postback.