fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsList: No data shown after n items, "pages" do not render if .ms-List height set to make header "sticky"

Open aappddeevv opened this issue 9 years ago • 4 comments

Bug Report

  • Package version(s): 5.21.0
  • Browser and OS versions: chrome, latest version

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes

Requested priority: High

Products/sites affected: Dynamics application

Describe the issue:

In order to keep the DetailsList header in one place and allow scrolling on the "list", I set the ".ms-List" height to the total height - list header height (~30px or so).

However, upon doing this with a long list, the list no longer rendered any pages so scrolling through the list fairly quickly produces "blank" information even though the scroll bar is still scrolling.

Removing the explicit height on the List shows normal display behavior however the header now scrolls with the data which is what we were trying to avoid. Setting listProps.renderCount does not help.

Actual behavior:

Data is not rendered and no data is show past the initial set of pages in the page cache.

Expected behavior:

The header should stay put and the pages should be generated so that scrolling shows the data.

If applicable, please provide a codepen repro:

aappddeevv avatar Nov 13 '17 19:11 aappddeevv

Is there any progress with this issue? Because my long list is not fully rendered even if I set isHeaderVisible to false. Although, if I click the list near the white, blank space, a new portion of items is added.

roofs-runner avatar Jan 17 '18 11:01 roofs-runner

The setting of the height was only to force a scroll of the list body. However, we can use ScrollablePane now per #1146.

aappddeevv avatar Feb 21 '18 18:02 aappddeevv

I've taken the example code and inserted into a simple create-react-app app. However, I just can't get the sticky's to stick inside the scroll area (they stick to the top of the page instead). This certainly looks like a CSS issue, but I am stumped. If anyone has any ideas, this would be really appreciated! I've uploaded a simple test project here :

https://[email protected]/rockgobyx/fabric-react-test.git

(I can fudge it using some absolute position values, but I would like to find a better solution)

stickyish

roger-green avatar Mar 23 '18 08:03 roger-green

You can make the header sticky if you ensure that you have “positioned” parents, then the header will be in the right place. Check out some of them other issues open on this topic as there are other problems.

On Fri, Mar 23, 2018 at 4:02 AM roger-green [email protected] wrote:

I've taken the example code and inserted into a simple create-react-app app. However, I just can't get the sticky's to stick inside the scroll area (they stick to the top of the page instead). This certainly looks like a CSS issue, but I am stumped. If anyone has any ideas, this would be really appreciated! I've uploaded a simple test project here :

https://[email protected]/rockgobyx/fabric-react-test.git

(I can fudge it using some absolute position values, but I would like to find a better solution)

[image: stickyish] https://user-images.githubusercontent.com/34266849/37817997-9016c024-2e70-11e8-88fe-698caac2f0ef.png

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/OfficeDev/office-ui-fabric-react/issues/3378#issuecomment-375573521, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIOaUw5MuL6-ULyZzwGP2RklKkXr1wmks5thKwvgaJpZM4QcQbN .

aappddeevv avatar Mar 23 '18 11:03 aappddeevv