ericmmartin / simplemodal

A modal dialog framework for jQuery
http://simplemodal.com/
Other
506 stars 229 forks source link

creating with HTML string does not center the dialog #32

Open sangwook-kim opened 11 years ago

sangwook-kim commented 11 years ago

You can create with $.modal($('

asdf

)); $.modal(asdf); $.modal(123);

however, if you create the modal like below, $.modal('

asdf

); the dialog's top-left point will be placed at the center. not to body of dialog.

so if you apply patch below, @@ -231,6 +231,7 @@ */ init: function (data, options) { var s = this;

You can use HTML string as data.

Sorry for the sloppy patch. It's my first patch...