Changing the size of a Boxy Dialog box
I'm using the Boxy jQuery Plug-in (Boxy Plug-In) and I'm trying to change the size of the box. I've tried this, but it 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(4开发者_StackOverflow社区00, 400);
Dialog.show();
Any help please?
I think the problem is that you can't call resize
on a Boxy window before it's displayed. show()
it first, then fire the resize()
. You can also put the resize call inside the afterShow
callback in the Boxy constructor.
Wasn't Boxy the first attampt of Facebox modal box? http://chriswanstrath.com/facebox/ you might want to try that instead.
精彩评论