[MainView] positioning & clipping don't take into account ListView.header's height at startup
Bug #1202277 reported by
Michael Spencer
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu File Manager App |
Fix Released
|
High
|
Unassigned | ||
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Tim Peeters |
Bug Description
When starting an application with a ListView, the list's header not aligned with the MainView's header. Instead, the MainView's header is aligned with the first list item in the ListView. When updating the list model, the MainView then aligns the list's header correctly. This problem only seems to occur when first starting an application.
Related branches
lp:~tpeeters/ubuntu-ui-toolkit/header-listview-mainview
- PS Jenkins bot: Approve (continuous-integration)
- Zsombor Egri: Approve
- Tim Peeters: Approve
-
Diff: 97 lines (+67/-3)3 files modifiedmodules/Ubuntu/Components/MainView.qml (+2/-1)
modules/Ubuntu/Components/Page.qml (+7/-2)
tests/unit_x11/tst_components/tst_header.qml (+58/-0)
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Critical |
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Tim Peeters (tpeeters) |
Changed in ubuntu-ui-toolkit: | |
assignee: | Florian Boucault (fboucault) → Tim Peeters (tpeeters) |
Changed in ubuntu-ui-toolkit: | |
status: | Confirmed → In Progress |
Changed in ubuntu-ui-toolkit: | |
status: | In Progress → Confirmed |
Changed in ubuntu-ui-toolkit: | |
status: | Confirmed → In Progress |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
Changed in ubuntu-filemanager-app: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Confirmed. This code easily shows the issue:
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView {
width: 400
height: 600
Page {
title: "listview"
ListView {
anchors. fill: parent
header: Rectangle {
color: "red"
width: parent.width
height: units.gu(5)
delegate: Label {
text: "number " +index
}
model: 500
}
}
}
}