Public bug reported: 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" applicationName: "foo.bar" width: units.gu(40) height: units.gu(75) Page { title: "Settings" Flickable { anchors.fill: parent contentHeight: childrenRect.height Column { anchors.left: parent.left anchors.right: parent.right OptionSelector { text: i18n.tr("Label") model: [i18n.tr("Value 1"), i18n.tr("Value 2"), i18n.tr("Value 3"), i18n.tr("Value 4")] } } } } } This is due to Flickable width to be 0, (Column's parent is the Flickable.contentItem, not 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.contentHeight: column.height ** Affects: ubuntu-ui-toolkit (Ubuntu) Importance: Undecided Status: New ** Tags: devexp -- You received this bug notification because you are a member of Ubuntu SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu. https://bugs.launchpad.net/bugs/1481619 Title: Flickable doesn't position below header on start Status in ubuntu-ui-toolkit package in Ubuntu: New 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" applicationName: "foo.bar" width: units.gu(40) height: units.gu(75) Page { title: "Settings" Flickable { anchors.fill: parent contentHeight: childrenRect.height Column { anchors.left: parent.left anchors.right: parent.right OptionSelector { text: i18n.tr("Label") model: [i18n.tr("Value 1"), i18n.tr("Value 2"), i18n.tr("Value 3"), i18n.tr("Value 4")] } } } } } This is due to Flickable width to be 0, (Column's parent is the Flickable.contentItem, not 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.contentHeight: column.height To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1481619/+subscriptions -- Mailing list: https://launchpad.net/~ubuntu-sdk-bugs Post to : ubuntu-sdk-bugs@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs More help : https://help.launchpad.net/ListHelp