Reputation: 3699
I want to resize the dialog dynamically just before I open it, but this doesn't work.
EDIT: I found the problem me editing the code in the wrong place. This works as expected:
$("#thxboxMd").dialog("option", { height: 400 });
$("#thxboxMd").dialog("open");
Rest:
$("#thxboxMd").dialog({
resizable: false,
height: 200,
width: 400,
autoOpen: false,
modal: true,
buttons: {
"close": function () {
$(this).dialog("close");
}
}
});
Upvotes: 0
Views: 420