javascript - Changing the size of a Boxy Dialog box -
i'm using boxy jquery plug-in (boxy plug-in) , i'm trying change size of box. i've tried this, didn't work:
var dialog = new boxy("<div style='left-margin:40px;'><p><b>event name:</b> " + foundtype.name + "</p><p><b>event type:</b> " + foundcategory.name + "</p><p><b>date: </b>" + foundtype.date.todatestring() + "</p><p><b>comments:<br /></b>" + foundtype.details + "</p></div>", { title: "<h><b>detail</b></h>", modal: true, show: false }); dialog.resize(400, 400); dialog.show();
any please?
i think problem can't call resize
on boxy window before it's displayed. show()
first, fire resize()
. can put resize call inside aftershow
callback in boxy constructor.
Comments
Post a Comment