by joe.pesch
17. February 2014 21:36
I experienced an issue with jQuery dialog box if I opened the same dialog a second time the height would be collapsed so the content was not showing. It seems the issue is related to allowing the jQuery dialog to open on creation (i.e. autoOpen = true, which is the default so if you leave the autoOpen parameter off the dialog creation it will autoOpen by default). Instead, you should create the dialog (with autoOpen = false) and then explicitly open the dialog (e.g. $dlg.dialog('open'), see sample code below).
/* Problem code */
$("#objectid").dialog({
height: 680,
width: 800,
modal: true,
resizable: false
});
/* Solution code */
var $dlg = $("#objectid");
$dlg.dialog({
autoOpen: false,
height: 680,
width: 800,
modal: true,
resizable: false
});
$dlg.dialog('open');
e80bf6eb-e80c-4167-a958-884e28ce178b|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Tags:
JQuery