Bug 433815 - On mobile, the drawer header is broken in multiples kirigami apps
Summary: On mobile, the drawer header is broken in multiples kirigami apps
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: Master
Platform: Other Linux
: NOR grave
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-01 20:19 UTC by Carl Schwan
Modified: 2021-03-09 15:13 UTC (History)
2 users (show)

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


Attachments
Discover (36.94 KB, image/png)
2021-03-01 20:20 UTC, Carl Schwan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Schwan 2021-03-01 20:19:46 UTC
SUMMARY

The drawer header contentItem is too small compared to the header. This creates an ugly white "strip" and content not aligned with the rest.

STEPS TO REPRODUCE
1. QT_QUICK_CONTROLS_MOBILE=1 plasma-discover
2. open drawer

OBSERVED RESULT

See screenshot


EXPECTED RESULT

Header item occupying all the height

ADDITIONAL INFORMATION

I tried to look into it. Porting AbstractApplicationHeader to a Control instead of an Item with control like API fix it but creates many other bugs probably because some other pieces of code expect different behavior.
Comment 1 Carl Schwan 2021-03-01 20:20:20 UTC
Created attachment 136296 [details]
Discover
Comment 2 Marco Martin 2021-03-09 15:13:12 UTC
Git commit d7d70795f9ca72084236282211d0a89f75426261 by Marco Martin.
Committed on 09/03/2021 at 15:13.
Pushed by mart into branch 'master'.

the visible part should always at least be as tall as item

the contents of the header can be bigger than the control,
but never smaller

M  +1    -1    src/controls/templates/AbstractApplicationHeader.qml

https://invent.kde.org/frameworks/kirigami/commit/d7d70795f9ca72084236282211d0a89f75426261