fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsList {selectionMode={SelectionMode.none} bad first column width

Open stephenzsy opened this issue 10 years ago • 4 comments

The first column width is to fit the content instead of a fixed width column when DetailsList has SelectionMode.none. Please fix.

stephenzsy avatar Oct 19 '16 21:10 stephenzsy

I definitely repro'd issues with the advanced example, which i will fix, but when i set selectionmode none, i don't see a bad first column width.

Is there a small isolated snippet you could provide? E.g. maybe modify one of the examples in the project.

dzearing avatar Oct 21 '16 21:10 dzearing

I think what I encountered is if I only set the minWidth but not maxWidth for customized column definitions, I get the width of individual cells = max(content width, minWidth), instead of all cells in the column have the same width.

stephenzsy avatar Oct 21 '16 21:10 stephenzsy

Could you just pass in max being the same value?

The justified rendermode tries the size all the columns to fit in the visible space. So i believe passing in no max will stretch the columns to fit in the given space, and try to drop off columns if they cant fit.

If you would like something fixed here please provide some more detail. Repro steps, and a screenshot of what you're seeing would help.

dzearing avatar Oct 26 '16 15:10 dzearing

Closing this issue. Please re-open there is a specific bug that should be addressed and include more information (screenshots, repro).

dzearing avatar Oct 30 '16 18:10 dzearing