Flickable doesn't position below header on start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Medium
|
Tim Peeters |
Bug Description
with Ubuntu Components 1.2, instantiating a MainView should adjust on start contentY of the flickable component to header.height.
In the following example, this isn't recalculated properly before an user's drag.
import QtQuick 2.4
import Ubuntu.Components 1.2
MainView {
id: mainview
objectName: "mainView"
application
width: units.gu(40)
height: units.gu(75)
Page {
title: "Settings"
Flickable {
Column {
}
}
}
}
}
This is due to Flickable width to be 0, (Column's parent is the Flickable.
Solution is to give an ID to your flickable (i.e. id: flickable), and set the width of the column using that (width:
flickable.width). Then, give an id to Column and set flickable.
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Christian Dywan (kalikiana) |
assignee: | Christian Dywan (kalikiana) → Tim Peeters (tpeeters) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
This should not be a problem any more with the new PageHeader, you set the flickable property there explicitly. See https:/ /developer. ubuntu. com/en/ blog/2016/ 02/24/pageheade r-tutorial/