fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsListLayoutMode always uses fixedColumns

Open aaronyzhou opened this issue 9 years ago • 3 comments

Bug Report

  • Package version(s): master

Describe the issue:

On our detail list, we set DetailsListLayoutMode to 'justified', however it always renders using fixed columns view.

https://github.com/OfficeDev/office-ui-fabric-react/blob/78e462bc936350fee2806ee0e70d523e8deee9b5/packages/office-ui-fabric-react/src/components/DetailsList/DetailsList.tsx

In onColumnsResized, we pass in DetailsListLayoutMode.fixedColumns to _adjustColumns, image so the highlighted code never gets called and we always used fixedColumns.

aaronyzhou avatar Dec 16 '16 22:12 aaronyzhou

I tried reproing what you're saying but i couldn't quite get it. Are you setting the right property? It should be layoutMode on the DetailsList. Can you provide a code snippet or codepen?

dzearing avatar Jan 12 '17 18:01 dzearing

We are experiencing a lot of issues with the justified layout mode. When the first column has no 'maxWidth' property, the entire detailslist gets squished. When we do have a 'maxWidth' for the first column, the details list does not respect the 'maxWidth' parameter for the other column. We can also resize both columns to be larger than maxWidth.

http://codepen.io/anon/pen/OWXZrx?editors=0110

aaronyzhou avatar Jan 13 '17 23:01 aaronyzhou

Closing as of now, we can reopen this at a later time if we find this issue still valid.

gokunymbus avatar Jan 11 '18 19:01 gokunymbus