-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal window breaks page layout #384
Comments
Thanks for your inputs Laurens! This behavior originates in It makes sense to make customize this behavior, but we'll have to discuss with the author of On a side note: I'm really looking forward try replacing the modals with the relatively new HTML |
After upgrading to The only thing occuring now (at least in my project) is that the modal opens at the top-left of the window, instead of being centered. Applying a |
🎉 that's good to hear, thanks for letting me know. Do you think the positioning issue is related to some CSS in your project, setting |
Thanks for your fast reply! |
Yes you're right, makes sense. I've added the |
Thanks for making and maintaining this project!
I just switched from the old jsoneditor to vanilla-jsoneditor and it's a great replacement. 👍
However, the modal windows behave quite differently now and seem to break the layout.
When opening a modal window (by clicking on the Sort or Transform Contents buttons), the following inline styling is being applied to the
body
element:position: fixed; top: 0px; // (this is a dynamic value) overflow: hidden; width: 100%;
This can break some complex layouts, e.g. when the json editor is nested in a container that has
contain: layout;
applied, which prevents the modal to break out of it.It would be great to have this behaviour configurable, such as:
body
elementdocument.body
)The text was updated successfully, but these errors were encountered: