dinbror / bpopup

bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
http://dinbror.dk/bPopup
427 stars 260 forks source link

loadCallback is fired before loading iframe #76

Open devochki opened 4 years ago

devochki commented 4 years ago

When I use loadCallback event, I notice that it is fired before loading iframe. Maybe it will be better to use something like this: h.on('load', function(){k(a.loadCallback);}); instead of directly call event. Maybe it will be good to add id of iframe, so it will be easy referrable outside bPopup. Also, is there a way to auto-size iframe? I try to change its height at loadCallback function, but this approach is not very clear as I think.

Thank you for support.