Even better would be if autoResize in latest branch would work as intended, but till then the question is simlpe: how to resize a dialog once it is created?
+2
A:
All JQuery UI plugins can have their properties updated using .data():
$(document).ready(function(){
var d = $("#example").dialog();
d.data("width.dialog", 700);
});
Soviut
2009-01-04 11:47:32
+2
A:
The answer from is Soviut is correct for v1.5. 1.6 adds an option method to each plugin:
$(document).ready(function(){
var d = $("#example").dialog();
d.dialog("option", "width", 700);
});
rdworth
2009-01-04 14:04:46
A:
I like to have the dialog sized to contents when created so I use this:
var dlg = $("#dialog");
dlg.dialog( {
width: 600,
height: dlg.height() + 100
});
Paul Alexander
2010-01-19 18:31:53