Header adds to Flickable topMargin instead of replacing it.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Tim Peeters |
Bug Description
Th attached test application works fine under qml-module-
https:/
Run the attached test case with QML scene. You can scroll the view horizontally to see the other model items. Under the old version of the toolkit, all items have their page headers correctly aligned; with the new version, an extra spacing is added below the header.
I found this bug while testing my ttrss app in rc-proposed; please don't let this UITK version reach our users, as more apps might be affected.
Related branches
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 28 lines (+6/-6)1 file modifiedsrc/Ubuntu/Components/plugin/ucheader.cpp (+6/-6)
tags: | added: regression-proposed |
Changed in canonical-devices-system-image: | |
milestone: | none → 11 |
assignee: | nobody → Zoltan Balogh (bzoltan) |
status: | New → Incomplete |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
status: | Incomplete → In Progress |
importance: | Undecided → High |
no longer affects: | canonical-devices-system-image |
I'm not the developer of PageHeader, but I had a look at the code, and it seems that's the expected outcome.
When PageHeader. flickable is set, PageHeader adds its height to the topMargin to ensure all the content is visible.
In your case, when PageHeader. flickable is set both PageHeader and you are setting topMargin. As a consequence, you get a double top margin.
DISCLAIMER: I just had a quick look at the code, so take my words with a pinch of salt :)
If, instead, you get the double height also when PageHeader. flickable is null, then my words are void.