-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Bug] Modals move other UI elements when opening and closing #81
Comments
Hello there, @rickstaa , Unfortunately, this cannot be solved. Best, |
@einazare Actually it seems they already fixed in Material-UI v5. |
To anyone coming accross this issue, this is caused by the Dialog setting "overflow-y: hidden" when appearing on the body, which causes the scrollbar to disappear. A fix for me was to set 'overflow-y':'auto !important' on the body element (CSS). It's probably not the best fix, but it does the trick wonderfully for me ! |
@Tetedeiench Thanks a lot for uploading the fix. I'm glad that your solution worked out for you. Maybe I'm doing it wrong but for me, in the new chrome/firefox browsers, this, unfortunately, does not work. Adding the |
try add |
Version
1.9.0
Reproduction link
https://demos.creative-tim.com/material-kit-pro-react/#/components
Operating System
Ubuntu 20.04, windows 10
Device
Hp Zbook G5
Browser & Version
Chrome v8.0.4324.150, firefox v85.0.1
Steps to reproduce
What is expected?
I expected the other UI components to stay still when toggling the modal.
What is actually happening?
Currently, some elements are moved when the modal is opened and closed.
Solution
I did not yet find a solution to this problem. It looks like it is related to the scrollbar. I tried the solutions in this stackoverflow post but they don't seem to work.
Additional comments
Seems to be related to:
The text was updated successfully, but these errors were encountered: