Having access to the page header component would be useful
Bug #1445016 reported by
Sebastien Bacher
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using vivid, currently the pagestack/page try to be smart with the header and adjust margins as needed, but that doesn't always work and it would be nice to have access to the header component to be able to e.g anchor on header.bottom
small testcase example attached, the intend is to center the label but it's not easy to do (you can do it by tweaking the topMargin though)
(note that the code is inspired from the system settings updates panel and bug #1429280)
Related branches
lp:~tpeeters/ubuntu-ui-toolkit/40-PageWithHeader
- Cris Dywan: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 411 lines (+279/-12)8 files modifiedcomponents.api (+1/-0)
src/Ubuntu/Components/1.3/AdaptivePageLayout.qml (+7/-3)
src/Ubuntu/Components/1.3/MainView.qml (+9/-1)
src/Ubuntu/Components/1.3/Page.qml (+40/-0)
src/Ubuntu/Components/1.3/PageTreeNode.qml (+0/-7)
src/Ubuntu/Components/Themes/Ambiance/1.3/PageHeaderStyle.qml (+1/-1)
tests/unit_x11/tst_components/tst_multicolumnheader.qml (+69/-0)
tests/unit_x11/tst_components/tst_page_with_header.qml (+152/-0)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
assignee: | nobody → Tim Peeters (tpeeters) |
To post a comment you must log in.
I'm facing this in my Forum Browser app as well. Besides the ability to center components in the Page, this also makes bottom edge implementations rather difficult sometimes since you don't want content which is revealed while swiping to appear behind the header. I'd really appreciate a fix.