-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[data grid] DataGrid does not autoresize width correctly when nested with a Drawer
style component
#15439
Comments
This is a CSS flexbox related problem, not a problem with the data grid. Top force the drawer to a specific width you can use Is this what you are looking for? |
Drawer
style componentDrawer
style component
@michelengelen I've updated the codesandbox to remove |
I've gotten around it by wrapping the grid in a
I do believe this is still a layout bug with DataGrid. |
And another follow up... The issue can be resolved by adding a |
I tend to disagree. It is not a layout bug of the data grid. As mentioned before you are encountering a limitation of the flex-box property (and the css grid as well).
To be a bit clearer about this: The flex-child will always try to shrink to fit the size of the content, since Very good answer about this on StackOverflow |
Its great though that you could fix your problem. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @rdougan How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Steps:
Current behavior
The drawer is not visible unless you make the window large enough for DataGrid full width + drawer. If you resize the window smaller, the
drawer
hides. If youExpected behavior
Drawer should take up full width of the container.
Context
I first noticed this as my app has a
Drawer
component withDataGrid
's sometimes appearing on screen with it. If I resize, I would like to show the drawer on the left, while showing the full widthDataGrid
.Your environment
OSX Chrome & Safari
Search keywords: datagrid width autoresize
Order ID: 86320
The text was updated successfully, but these errors were encountered: