question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sticky header is disappearing when scrolling

See original GitHub issue

When scroll and the header reaches the top, it disappears

adapter.layoutManager = StaggeredGridLayoutManager(...)
adapter.setDisplayHeadersAtStartUp(true)
adapter.setStickyHeaders(true)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mattlaabscommented, Mar 22, 2018

I might experience the same bug, can’t tell exactly when it started. Scenario is: sticky headers and under the current header there are more items than fit on the screen. When scrolling down, the next header does not show up in place but replaces the current header at the sticky position while leaving an empty space at its correct position. Once the new header is scrolled to the top, everything looks ok. Scrolling up works fine. A temporary workaround for me is to set a 0-sized recycler pool for the header view. (Probably has performance impact, but not relevant for my scenario.)

0reactions
mattlaabscommented, Mar 22, 2018

Yes, just switched back to 5.0.2 (with the 0-sized pool workaround removed) and the error is back.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sticky header disappearing after going a certain ways down ...
The sticky element scrolls away once you scroll past the computed height of the body, which is the header's parent.
Read more >
Sticky header disappearing when scrolling up - Themeco
When scrolling down the bars appear to behave normally but when scrolling back up they are acting strange. See screenshots.
Read more >
How to Hide/Reveal a Sticky Header on Scroll (With JavaScript)
In this tutorial we'll learn how to hide the page header when scrolling down the page, then reveal it when scrolling up.
Read more >
ReactJS header that disappears on scroll down and appears ...
This page has a sticky disappearing header. Scroll down and it will disappear from view. Scroll up and it will reappear like magic....
Read more >
Sticky Menu disappears when scrolling down - GeneratePress
I configured the primary navigation this way: “sticky navi on” + “transition fade” + “hide when scrolling down” is unchecked + “menu item...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found