Skip to content

[virtualizer] Improve the dimensions' initial state#22885

Merged
arminmeh merged 2 commits into
mui:masterfrom
arminmeh:initial-dimensions
Jun 19, 2026
Merged

[virtualizer] Improve the dimensions' initial state#22885
arminmeh merged 2 commits into
mui:masterfrom
arminmeh:initial-dimensions

Conversation

@arminmeh

Copy link
Copy Markdown
Contributor

Make the initial values more accurate

@arminmeh
arminmeh requested a review from cherniavskii June 18, 2026 14:10
@arminmeh
arminmeh requested a review from romgrk as a code owner June 18, 2026 14:10
@arminmeh arminmeh added internal Behind-the-scenes enhancement. Formerly called “core”. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jun 18, 2026
@arminmeh arminmeh changed the title [virtualizer] Improve dimensions' initial state [virtualizer] Improve the dimensions' initial state Jun 18, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-22885--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 🔺+221B(+0.05%) 🔺+58B(+0.05%)
@mui/x-data-grid-pro 🔺+221B(+0.04%) 🔺+56B(+0.04%)
@mui/x-data-grid-premium 🔺+221B(+0.03%) 🔺+57B(+0.03%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 🔺+221B(+0.18%) 🔺+65B(+0.18%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@arminmeh
arminmeh requested a review from kenanyusuf June 18, 2026 14:29
...dimensionsParams,
autoHeight,
minimalContentHeight,
topContainerHeight,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this the key change that solves the layout jump in the original issue?
Other changes (positions and currentPageTotalHeight) seem to have no impact on same-row-height use case, right?

@cherniavskii cherniavskii Jun 18, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also, adding needs-cherrypick label so we bring it to v8 too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is this the key change that solves the layout jump in the original issue?
Other changes (positions and currentPageTotalHeight) seem to have no impact on same-row-height use case, right?

Both correct.

Logic is extended to try to precalculate sizes in case you provide getRowHeight callback. It will still miss if it returns auto for some rows, but for numbers it will match the sizes correctly.

@cherniavskii cherniavskii added needs cherry-pick The PR should be cherry-picked to master after merge. v8.x labels Jun 18, 2026
@arminmeh
arminmeh merged commit 0d48c02 into mui:master Jun 19, 2026
21 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Cherry-pick PRs will be created targeting branches: v8.x

@arminmeh
arminmeh deleted the initial-dimensions branch June 19, 2026 07:45
mbrookes pushed a commit to mbrookes/mui-x that referenced this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Behind-the-scenes enhancement. Formerly called “core”. needs cherry-pick The PR should be cherry-picked to master after merge. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. v8.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants