Skip to content

[DashboardLayout] Add width containment on flex container - #4414

Merged
bharatkashyap merged 5 commits into
mui:masterfrom
bharatkashyap:fix/dashboard-layout-scroll
Nov 19, 2024
Merged

[DashboardLayout] Add width containment on flex container#4414
bharatkashyap merged 5 commits into
mui:masterfrom
bharatkashyap:fix/dashboard-layout-scroll

Conversation

@bharatkashyap

@bharatkashyap bharatkashyap commented Nov 14, 2024

Copy link
Copy Markdown
Collaborator

@bharatkashyap bharatkashyap added type: bug It doesn't behave as expected. component: layout labels Nov 14, 2024
@Janpot

Janpot commented Nov 18, 2024

Copy link
Copy Markdown
Member

why max width? shouldn't the container just be the width of the available space, regardless of the content?

@bharatkashyap

Copy link
Copy Markdown
Collaborator Author

why max width? shouldn't the container just be the width of the available space, regardless of the content?

You're right, the fix works because of the min-width and not the max-width:

Screen.Recording.2024-11-18.at.8.33.46.PM.mov

@apedroferreira apedroferreira left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to do it. Thanks a lot, Bharat!

@bharatkashyap
bharatkashyap merged commit 840e8e1 into mui:master Nov 19, 2024
@alexwork1611

Copy link
Copy Markdown

Glad you guys figured it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug It doesn't behave as expected.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[example][pageContainer] Unable to scroll a Datagrid Responsive bug with MUI component

5 participants