-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Dialog with scroll=body is not centered #12130
Comments
I believe it's a technical limitation. You have to make a tradeoff picking one over the other. |
@oliviertassinari if the styling is the only issue here - then I have a solution for that. It's possible to achieve the desired horizontal and vertical centering while retaining "body" scroll and really good browser compatibility. The trick here is to use two elements with (I'd try to make a PR myself but I'm a bit scared by the MUI size and it would probably take me a lot of time to do that properly.) |
The size shouldn't matter :). |
@oliviertassinari what are the blockers here other than styling?
…On Sun, 26 May 2019 at 23:08, Olivier Tassinari ***@***.***> wrote:
The size shouldn't matter :).
I'm skeptical it can work, but I'm would love to be proven wrong! Let me
know if you need help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12130>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABY2FTHIJGLERH4VUVY2NDDPXL35JANCNFSM4FJZBYAA>
.
|
Would it require creating new DOM elements or to introduce a breaking change? |
@DominikSerafin Aside from the two potential blockers, I can't think of anything else. |
@oliviertassinari I've opened PR 😃 I was able to achieve this functionality with |
Expected Behavior
I think that dialog should look the same whether is scroll set to paper or body.
Current Behavior
Your Environment
Material UI 1.3.1
The text was updated successfully, but these errors were encountered: