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

Grid with spacing within Drawer causes horizontal scrollbar #23035

Closed
2 tasks done
benneq opened this issue Oct 13, 2020 · 1 comment
Closed
2 tasks done

Grid with spacing within Drawer causes horizontal scrollbar #23035

benneq opened this issue Oct 13, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@benneq
Copy link
Contributor

benneq commented Oct 13, 2020

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When placing a Grid with spacing inside a Drawer I get a horizontal scrollbar.

Drawer.variant and PaperProps.style.width don't affect this behavior.

Expected Behavior 🤔

No scrollbar, because Grid should automatically fit its container.

Steps to Reproduce 🕹

Link to CodeSandbox: https://codesandbox.io/s/beautiful-northcutt-gn341?file=/src/Demo.js

Steps:

  1. Open Link
  2. Look 😄

Context 🔦

I'm trying to put some evenly spaced elements within a Drawer.

Your Environment 🌎

Tech Version
Material-UI v5.0.0-alpha.12
React 17.0.0-rc3 (also tested with version 16.x)
Browser Chrome 86
TypeScript 4.0.3
etc.
@benneq benneq added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 13, 2020
@oliviertassinari oliviertassinari added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 13, 2020
@oliviertassinari
Copy link
Member

Duplicate of #7466

@oliviertassinari oliviertassinari marked this as a duplicate of #7466 Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants