开发者

Changing the size of a Boxy Dialog box

开发者 https://www.devze.com 2023-02-11 06:48 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号