Skip to content

Column widths shrink as column count increases, causing cells to wrap unexpectedly #779

Description

@pfo-omicsstudio

Describe the bug
This one is simple so I will keep it brief.

When a table becomes horizontally scrollable due to many columns, auto-fit stops working and column widths progressively shrink, causing cell text to wrap.

To Reproduce
Just create a table with many columns.

Here's a codesandbox for convenience:
https://codesandbox.io/p/sandbox/mantine-datatable-resizable-forked-tmmy6g?file=%2Fsrc%2FApp.tsx%3A35%2C7

Expected behavior
Column widths should be completely unaffected by horizontal scrolling.
Cell wrapping should not occur.

Screenshots
Works fine (not horizontally scrollable):
Image

Stops working as soon as it becomes horizontally scrollable (column widths start shrinking and cells wrap):
Image

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions