saribe / eModal

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.
http://saribe.github.io/eModal
271 stars 97 forks source link

Controlling the size of the iframe #78

Closed Northshoot closed 5 years ago

Northshoot commented 6 years ago

Hey

Thanks for a great script!

What would be the advisable way to control the size of the iframe modal more gradually?

saribe commented 5 years ago

We included an extra size that is not specified on the bootstrap interface (XL)

https://getbootstrap.com/docs/4.0/components/modal/#optional-sizes

We don't have any easy way to do it.. however we can always manipulate the dom if needed.

const { then, catch, element } = eModal.ifram(args);

element.find(SELECTOR) => and change it...