Bug 420592 - Header does not stick when scrolling with ScrollablePage and ListView
Summary: Header does not stick when scrolling with ScrollablePage and ListView
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: Master
Platform: Neon Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-25 20:40 UTC by Devin Lin
Modified: 2021-02-18 03:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
video broken (248.15 KB, image/gif)
2020-07-13 21:43 UTC, Nicolas Fella
Details
video fixed (248.68 KB, image/gif)
2020-07-13 21:43 UTC, Nicolas Fella
Details
Code snippet (434 bytes, text/x-qml)
2020-07-13 21:44 UTC, Nicolas Fella
Details

Note You need to log in before you can comment on or make changes to this bug.
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