ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00592
[Bug 1261907] Re: ContentY of Flickable inside Page is not correctly initialized if the direct parent of the page is not a PageTreeNode
** Changed in: ubuntu-ui-toolkit
Status: Fix Committed => Fix Released
--
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/1261907
Title:
ContentY of Flickable inside Page is not correctly initialized if the
direct parent of the page is not a PageTreeNode
Status in Ubuntu UI Toolkit:
Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
Fix Released
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 {
anchors.fill: parent
model: 20
delegate: Rectangle {
width: parent.width
height: units.gu(8)
border.width: 5
}
}
}
}
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 {
anchors.fill: parent
Page {
title: "hello"
ListView {
anchors.fill: parent
model: 20
delegate: Rectangle {
width: parent.width
height: units.gu(8)
border.width: 5
}
}
}
}
}
With this code, the initial contentY of the ListView is incorrect and
the first list item is hidden behind the mainview header.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1261907/+subscriptions