ContentY of Flickable inside Page is not correctly initialized if the direct parent of the page is not a PageTreeNode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
High
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This code works fine:
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView {
width: units.gu(40)
height: units.gu(40)
Page {
title: "hello"
ListView {
model: 20
}
}
}
}
The position of the ListView is correctly initialized, so that the first list item is positioned directly under the header of the MainView. However, wrapping the Page inside an Item breaks this:
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView {
width: units.gu(40)
height: units.gu(40)
Item {
Page {
title: "hello"
}
}
}
}
}
With this code, the initial contentY of the ListView is incorrect and the first list item is hidden behind the mainview header.
Related branches
- Cris Dywan: Approve
- PS Jenkins bot: Approve (continuous-integration)
- Francis Ginther (community): Approve
-
Diff: 216 lines (+76/-35)4 files modifiedmodules/Ubuntu/Components/Header.qml (+25/-1)
modules/Ubuntu/Components/Page.qml (+4/-28)
tests/unit/tst_components/tst_page.qml (+9/-4)
tests/unit_x11/tst_components/tst_header.qml (+38/-2)
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Tim Peeters (tpeeters) |
status: | New → In Progress |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Fix committed into lp:ubuntu-ui-toolkit at revision 907, scheduled for release in ubuntu-ui-toolkit, milestone Unknown