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

DataGrid is not resizing properly inside DashboardLayout #4331

Open
Petar-Dimitrov-AXA opened this issue Oct 29, 2024 · 9 comments
Open

DataGrid is not resizing properly inside DashboardLayout #4331

Petar-Dimitrov-AXA opened this issue Oct 29, 2024 · 9 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! scope: toolpad-core Abbreviated to "core"

Comments

@Petar-Dimitrov-AXA
Copy link

Petar-Dimitrov-AXA commented Oct 29, 2024

Steps to reproduce

When using DataGridPro within DashboardLayout, the table does not resize properly when the menu is expanded.

Here are the steps to reproduce the issue:

  1. Use the DataGridPro component with sufficient horizontal data and integrate it into a page with routing and navigation using
    React and toolpad.
  2. Initially, everything renders correctly.
  3. Collapse the menu and then expand it, at which point the DataGrid table does not resize properly.

To resolve this issue, you can add overflow: hidden to the 4th DOM element, which, in my case, is a div with the classname
MuiBox-root and is a child of the AppProvider root element.

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: DataGridPro DashboardLayout

@Petar-Dimitrov-AXA Petar-Dimitrov-AXA added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 29, 2024
@Janpot
Copy link
Member

Janpot commented Oct 29, 2024

Could you provide a codesandbox for us to demonstrate the issue? It's the best way for us to strip all ambiguity from the reproduction.

@Janpot Janpot added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 29, 2024
@oliviertassinari oliviertassinari added the core Infrastructure work going on behind the scenes label Nov 4, 2024
Copy link

github-actions bot commented Nov 5, 2024

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@apedroferreira
Copy link
Member

apedroferreira commented Nov 5, 2024

Even without a codesandbox reproduction we can still try to reproduce it from the initial instructions at least.
(The issue had auto-closed so I reopened it)

Copy link

github-actions bot commented Nov 6, 2024

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@github-actions github-actions bot closed this as completed Nov 6, 2024
@Petar-Dimitrov-AXA
Copy link
Author

The issue seems to be still closed. I didn't hat time the last week. I also am not able to make some sandbox example. That what I can do is to attach some screenshots from our system.

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Nov 6, 2024
@github-actions github-actions bot reopened this Nov 6, 2024
@bharatkashyap bharatkashyap added core Infrastructure work going on behind the scenes scope: toolpad-core Abbreviated to "core" and removed core Infrastructure work going on behind the scenes labels Nov 6, 2024
@Janpot
Copy link
Member

Janpot commented Nov 6, 2024

We can't debug from a screenshot. What's preventing you from creating a codesandbox?

@Petar-Dimitrov-AXA
Copy link
Author

Time

@oliviertassinari oliviertassinari changed the title DataGrid is not resizing properly inside DashboardLayout. DataGrid is not resizing properly inside DashboardLayout Nov 8, 2024
@prakhargupta1 prakhargupta1 added component: data grid This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 11, 2024
@christiancookbuzz
Copy link

I've worked around this issue by applying overflow: hidden to the DashboardLayout nested Box component (Which is referenced in the original issue):

<DashboardLayout
    sx={{
        '& > .MuiBox-root': {
            overflow: 'hidden'
        }
    }}
>

@apedroferreira
Copy link
Member

There was an issue with the horizontal overflow in the dashboard.
Maybe this fix in the next release will solve this issue too? #4414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! scope: toolpad-core Abbreviated to "core"
Projects
None yet
Development

No branches or pull requests

7 participants