I can't set maxWith.
I try:
<modal name="onboard" :max-width="302">
<modal name="onboard" :maxWidth="302">
Am I missing something here? Thanks
Hi @MacgyverMartins , I think I had a similar problem. Try adding :adaptive="true"!
If adaptive is false (which is the default), the internal logic of the modal will only use your width-attribute to calculate the width and position of the modal. With adaptive=true it will include maxWidth for the calculations. By the way: With adaptive=true, it will automatically set the window-width as maximum width which is nice for responsive behavior.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed.
This should be mentioned in the docs.
"If adaptive is false (which is the default), the internal logic of the modal will only use your width-attribute to calculate the width and position of the modal. With adaptive=true it will include maxWidth for the calculations. By the way: With adaptive=true, it will automatically set the window-width as maximum width which is nice for responsive behavior."
Most helpful comment
Hi @MacgyverMartins , I think I had a similar problem. Try adding
:adaptive="true"!If adaptive is false (which is the default), the internal logic of the modal will only use your width-attribute to calculate the width and position of the modal. With adaptive=true it will include maxWidth for the calculations. By the way: With adaptive=true, it will automatically set the window-width as maximum width which is nice for responsive behavior.