-
-
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] Unusable on small screens #3295
Comments
Please submit a PR with your changes - it makes it easier for us to read, comment and merge. Guide |
https://www.google.com/design/spec/components/dialogs.html#dialogs-behavior |
👍 On android phones any dialog with an input field causes the content to literally shrink to 0px tall. |
We've got the dialog working pretty well on mobile without too many hacks and no code changes to the dialog component: http://dsh.re/2eef2
|
There is still issue with using Dialog and TextField on Chrome on iPad when the onscreen keyboards opens. First, the Safari on Ipad works much better. When tap on a TextField of a dialog, the keyboards shows up and the dialog doesn't resize or re-position with the following code. This is much better user experience. When the keyboard hides, there no re-positioning or resizing either. With Chrome on iPad (not repro on Windows), when keyboard shows up after using start editing a TextField, the dialog will be resized. When the keyboard hides, the dialog will be repositioned to lower part of the screen. Even worse when I use more complex control on the dialog such as RichText editing control, the dialog will be resized and repositioned out the screen.
|
Hey I made this gist, it might help for this and other issues: https://gist.github.com/ThadeuLuz/0fafd4b44682df34ac807ebbd051a6f8 |
Closing as a duplicate of #7438. Having a scrollable dialog will address that limitation. |
Dialogs look great at big screen, but while browsing with phone - it's almost unusable. Contents collapses to small box with scrollbar if params set right. That was very very bad UX for my case. Here it's w/o modifications:
I've modified dialog.js to keep scrolling available while dialog is on and do not collapse contents, just leave it as it is when screen is too small for all dialog. Now it's scrollable and UX is a lot better. I also changed position from fixed to absolute and when showing dialog scroll to top of the screen to see actual dialog, not gray matter if clicked somewhere scrolled down. So now it looks like this:
I can scroll and read all the contents easily. Even on such a small viewport height.
I've cloned material-ui v0.13.4 and updating for my needs, so use this code with this info in your mind.
Hope some of this will go to main lib for better UX at least add option for such behaviour.
dialog.js:
The text was updated successfully, but these errors were encountered: