fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[DetailsList] Make last column to grow to take whole horizontal space

Open ankitk94 opened this issue 9 years ago • 3 comments

Describe the issue:

Not able to find way to make last column to details list to grow to take full width. I was not able to find any property to make any column auto adjust to width. Also tried using flexbox, but not able to use it also because DetailsRow renders 2 children (checkbox and details row fields). detailsRowField is not taking whole width, while parent of detailsRowField is able to take whole width.

Due to above, following issue is also occurring on high contrast mode (taken from dev.office.com/fabric):

image

An additional line is shown below header which are not being rendered

ankitk94 avatar Aug 09 '17 09:08 ankitk94

That's one part of the actual issue.

But this issue is occuring because the columns containing text( Name and Value) overlap the space intended for the horizontal line, if you try to reduce the height of those columns(or alternatively increase size for the row), the line is visible for the whole of row (which I think is the actual expected behavior). You should be ideally seeing a line below Name and Value in this case.

Issue can be reproduced here: http://dev.office.com/fabric#/components/detailslist

  1. Navigate to “Rendering custom item columns with sorting”
  2. Open Developer tools and go to the details lists’ header with class “ms-DetailsHeader” and change the height property to 33px and notice the difference( we can see that the line now appears below the row) image

Hardhik avatar Sep 22 '17 09:09 Hardhik

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions to Fabric React!

stale[bot] avatar Apr 11 '18 09:04 stale[bot]

This issue has been automatically closed because it has not had recent activity after being marked as stale. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to Fabric React! Why am I receiving this notification?

stale[bot] avatar May 18 '18 21:05 stale[bot]