Skip to content
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

[Drawer] Change height from 100vh to 100% #12528

Merged
merged 2 commits into from
Aug 15, 2018
Merged

[Drawer] Change height from 100vh to 100% #12528

merged 2 commits into from
Aug 15, 2018

Conversation

joemaffei
Copy link
Contributor

@joemaffei joemaffei commented Aug 15, 2018

As described in issue #12285, mobile Safari has a unique interpretation of 100vh, which includes the space behind the button bar. This can cause elements to be hidden behind the button bar, especially ones that are anchored to the bottom of the Drawer, as is common with buttons and links.

A value of 100% behaves as expected, occupying the full height of the visible area - not only in mobile Safari, but all other browsers to my knowledge.

Closes #12285

@oliviertassinari oliviertassinari changed the title Drawer height changed from 100vh to 100% [Drawer] Change height from 100vh to 100% Aug 15, 2018
@oliviertassinari oliviertassinari added new feature New feature or request component: drawer This is the name of the generic UI component, not the React module! labels Aug 15, 2018
@oliviertassinari oliviertassinari self-assigned this Aug 15, 2018
@oliviertassinari oliviertassinari merged commit 50c656b into mui:master Aug 15, 2018
@oliviertassinari
Copy link
Member

@joemaffei It's a great first pull request on Material-UI 👌🏻. Thank you for giving it a shot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: drawer This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants