Skip to content

Resize Divider Misalignment with Nested Columns in layoutMode="grid" #1501

@dcaudillo99

Description

@dcaudillo99

material-react-table version

v3.2.0

react & react-dom versions

v19.0.0

Describe the bug and the steps to reproduce it

When using layoutMode="grid" with nested columns, the resize divider for the parent column becomes misaligned if the child columns use different grow values. Specifically, when one child has grow: false, and another has grow: true, the parent resize handle does not line up correctly with the combined width of its children.

This causes visual and functional inconsistency when resizing grouped columns.

Expected Behavior
The parent resize divider should align correctly with the total width of its child columns, regardless of their individual grow values.

Actual Behavior
The resize divider for the parent column becomes offset and does not match the layout of the nested child columns.

Minimal, Reproducible Example - (Optional, but Recommended)

Codesandbox: https://codesandbox.io/p/devbox/nifty-tree-wry69j?file=%2Fsrc%2FTS.tsx

Screenshots or Videos (Optional)

Image

Do you intend to try to help solve this bug with your own PR?

None

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions