Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row Expansion causes columns to resize for no reason. #658

Open
th3oth3rjak3 opened this issue Oct 20, 2024 · 0 comments
Open

Row Expansion causes columns to resize for no reason. #658

th3oth3rjak3 opened this issue Oct 20, 2024 · 0 comments

Comments

@th3oth3rjak3
Copy link

th3oth3rjak3 commented Oct 20, 2024

Describe the bug
When the data table is rendered and all columns have plenty of space around child elements, clicking the row to expand it causes the columns to resize unnecessarily. This is a bit jarring for a user. It's also made worse when there are filter and sort icons on the top. This only occurs in certain situations, but I haven't been able to narrow down why.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://icflorescu.github.io/mantine-datatable/examples/expanding-rows/#using-collapse-function-in-row-expansion-content
  2. Make sure the browser window is wide enough that all columns have plenty of space.
  3. Expand rows and observe column width resizing. *Note that other tables above this example are fine.

Expected behavior
Row expansion should not change column sizes.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]: Windows 11
  • Browser [e.g. chrome, safari]: Firefox
  • Version [e.g. 22] 131.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant