Skip to content

DataGrid is not resizing properly inside DashboardLayout #4331

Description

@PetarDimitrovZH

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions