Bug 420592

Summary: Header does not stick when scrolling with ScrollablePage and ListView
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Devin Lin <espidev>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: nate, nicolas.fella
Priority: NOR    
Version First Reported In: Master   
Target Milestone: Not decided   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: video broken
video fixed
Code snippet

Description Devin Lin 2020-04-25 20:40:45 UTC
SUMMARY
With Kirigami.ScrollablePage, the page title header does not stay after scrolling down, and then scrolling back up.

STEPS TO REPRODUCE
1. Open Kirigami Gallery with QT_QUICK_CONTROLS_MOBILE=1
2. Resize window so that the sidebar is hidden.
3. Go to the "List view of simple cards" page
4. Scroll down so that the header is gone, and scroll back up

OBSERVED RESULT
The header is unable to stick.

EXPECTED RESULT
The header sticks when scrolling back up.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon Development
(available in About System)
KDE Plasma Version:  5.18.80
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Gif showing the issue (in another app):
https://imgur.com/a/7TTgWBs
Comment 1 Nicolas Fella 2020-07-13 21:32:35 UTC
This seems to be caused by https://invent.kde.org/frameworks/kirigami/-/commit/2e9355a6e584f392d19ba870054c5fc590782921
Comment 2 Nicolas Fella 2020-07-13 21:42:19 UTC
There are two issues:
- The last list item is cut off
- When scrolling all the way up the header disappears

See attached recording
Comment 3 Nicolas Fella 2020-07-13 21:43:00 UTC
Created attachment 130095 [details]
video broken
Comment 4 Nicolas Fella 2020-07-13 21:43:19 UTC
Created attachment 130096 [details]
video fixed
Comment 5 Nicolas Fella 2020-07-13 21:44:25 UTC
Created attachment 130097 [details]
Code snippet
Comment 6 Marco Martin 2020-07-20 10:37:54 UTC
The header is supposed to slide away.

the actual bug is that sometimes it doesn't slide back in
Comment 7 Devin Lin 2021-02-18 03:26:50 UTC
I think this was fixed when the header behaviour was redone :D