-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
feature: Rendering layoutRelated to the data grid Rendering engineRelated to the data grid Rendering enginescope: data gridChanges related to the data grid.Changes related to the data grid.support: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.type: regressionA bug, but worse, it used to behave as expected.A bug, but worse, it used to behave as expected.
Description
The problem in depth
When using DataGridPremium inside a tabbed layout, the following warning appears in the console:
MUI X: useResizeContainer - The parent DOM element of the Data Grid has an empty height.
Please make sure that this element has an intrinsic height.
The grid displays with a height of 0px.This happens even though the container div does have an explicit height set (e.g., 350px).
- Sandbox(with latest packages): StackBlitz Editor
- Replicated on: bolt.new/~/directory-website-gnrrahhy
- Live Demo: Deployed App
Steps:
- Open the app and open DevTools → Console.
- Switch between tabs.
- Observe the warning and layout rendering issue.
Expected Behavior
DataGrid should detect the container's height and not display a warning when height is explicitly set.
Your environment
`npx @mui/envinfo` & using chome
System:
OS: Windows 11 10.0.26100
Binaries:
Node: 22.15.0 - C:\Program Files\nodejs\node.EXE
npm: 10.9.2 - C:\Program Files\nodejs\npm.CMD
pnpm: Not Found
Browsers:
Chrome: Not Found
Edge: Chromium (135.0.3179.85)
npmPackages:
@emotion/react: ^11.14.0 => 11.14.0
@emotion/styled: ^11.13.0 => 11.14.1
@mui/core-downloads-tracker: 6.4.12
@mui/material: ^6.4.7 => 6.4.12
@mui/private-theming: 6.4.9
@mui/styled-engine: 6.4.11
@mui/system: 6.4.12
@mui/types: 7.2.24
@mui/utils: 6.4.9
@mui/x-data-grid: 7.27.3 => 7.27.3
@mui/x-data-grid-premium: 7.27.3 => 7.27.3
@mui/x-data-grid-pro: 7.27.3
@mui/x-date-pickers: ^7.27.3 => 7.29.4
@mui/x-internals: 7.26.0
@mui/x-license: 7.26.0
@types/react: 19.1.8
react: ^19.1.0 => 19.1.0
react-dom: ^19.1.0 => 19.1.0
typescript: 4.9.5
Search keywords: useResizeContainer - The parent DOM element of the Data Grid has an empty height.
Order ID: Order Number: 114806
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature: Rendering layoutRelated to the data grid Rendering engineRelated to the data grid Rendering enginescope: data gridChanges related to the data grid.Changes related to the data grid.support: premium standardSupport request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla.type: regressionA bug, but worse, it used to behave as expected.A bug, but worse, it used to behave as expected.