-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DataGridPremium having weird issues with pinnedColumns #14756
Comments
This is a regression, it used to work in v6: https://codesandbox.io/p/sandbox/elastic-fermat-xz8x8f |
Why do you need to have a wrapping div in-between? Setting dimensions on the container of the grid would fix the issue. The docs on layout highlight that having dimensions on the container is required. |
@cherniavskii Your sandbox link doesn't work, probably private. |
Adding a style={{width:'100%'}} on the div fixes the issue. I pulled the issue out into its most simplest form, which is why it is just in a div on the sandbox. Its nested deeper in the actual code base. Curious what you guys decide to do with this one. Do you hope everyone gets the layout correct? Do you repackage the component with the layout already in it with a width 100? Do you leave it as is? All fun questions. Thanks guys! |
If the issue is fixed, I'll close it. We already require the grid container to have set dimensions, and I don't see a need to support more cases. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @ddouangkesone! How was your experience with our support team? |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/youthful-shadow-q6rcw2
Steps:
display: 'flexbox'
Current behavior
The DOM width will start to mutate to the table.
(Notice the bottom scrollbar growing / shrinking as you manipulate the pinned column)
Expected behavior
The column should articulate without effecting the DOM width
Context
We recently set a pinned column in our project and now the pages with this column have the behavior present on them.
Your environment
Search keywords: DataGridPremium pinnedColumns
Search keywords:
The text was updated successfully, but these errors were encountered: