Skip to content

DetailsList columns to fit window, but also resizable? #23280

Discussion options

You must be logged in to vote

Was able to use a workaround based on issue: #18425

Used layoutMode={DetailsListLayoutMode.fixedColumns} on the DetailsList, then set a flexGrow on every column to 1 which proportionately made them take up even spacing.

FluentUI documentation lists a good description of flexGrow as well to give columns different proportions:
"If specified, the width of the column is a portion of the available space equal to this value divided by the sum of all proportional column widths in the list. For example, if there is a list with two proportional columns that have widths of 1 and 3, they will respectively occupy (1/4) = 25% and (3/4) = 75% of the remaining space."
(https://developer.microsoft.com/en…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jillianpenfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant