-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fix DetailsList width given nested groups (#5857) #5968
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
Conversation
|
Needs a change file. |
|
Anyone have a tip on how to get |
|
If you run it from root directory on this PR's branch, it should automatically detect the changes for you... if it doesn't run correctly, you may have to run |
|
I got |
|
Yep! It's just a delta regarding your change that's used for publishing. Just add and commit with name and location exactly as it was created (should be in a subdirectory under |
|
Thanks @JasonGore, it's been added. |
|
@JasonGore or @KevinTCoughlin. Looks like this just needs a reviewer stamp and the "default" check to get approved? Any chance you guys could help? Thanks! |
|
@jeffersonking what's the best way to see a GroupedList with the width calculation issue? The change makes sense, but I'm trying to better understand why the nested example we have in the docs isn't affected by it since it is nested three levels deep. This Codepen seems the same between |
|
@KevinTCoughlin You need two things simultaneously: 1) 2+ levels of grouping depth, 2) header columns. The DetailsList docs don't have #1. The GroupedList docs don't have #2. I can't speak for the Codepen but here is my repro: |
KevinTCoughlin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix and the repro snippet @jeffersonking.
Tested the following in Chrome, FF, and Edge:
- Repro case w/ & w/o column resizing enabled.
- Existing
DetailsListandGroupedListexamples.
![]()
Pull request checklist
$ npm run changeERROR: Command failed: git diff upstream/master... --dirstat=files,0
fatal: ambiguous argument 'upstream/master...': unknown revision or path not in the working tree.
Description of changes
DetailsList width calculation is not currently taking into account grouping depth >1. This fixes that.
Focus areas to test
(optional)
Microsoft Reviewers: Open in CodeFlow