dotNet Zombie
dotNet Zombie

Reputation: 134

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(400, 400);
            Dialog.show();

Any help please?

Upvotes: 0

Views: 377

Answers (2)

Jess
Jess

Reputation: 42938

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.

Upvotes: 1

Dizzi
Dizzi

Reputation: 747

Wasn't Boxy the first attampt of Facebox modal box? http://chriswanstrath.com/facebox/ you might want to try that instead.

Upvotes: -1

Related Questions