Comment 13 for bug 1508363

Revision history for this message
Victor Thompson (vthompson) wrote :

The Music and Weather app teams have been trying to determine how we can read the MainView or Page's Header height with the new API. With the updated imports to UITK 1.3 we are unable to do things like the following:

edgeLoader.item.flickable.contentY = -page.header.height

A large number of apps (clock, weather, filemanager, and probably others) use a PageWithBottomEdge component that make this or similar assignments. [1][2][3][4]

How can we access the height of the header in a reasonable fashion that also includes any Header Sections that may also be defined?

1- http://bazaar.launchpad.net/~ubuntu-weather-dev/ubuntu-weather-app/reboot/view/head:/app/components/PageWithBottomEdge.qml#L111
2 - http://bazaar.launchpad.net/~ubuntu-clock-dev/ubuntu-clock-app/trunk/view/head:/app/upstreamcomponents/PageWithBottomEdge.qml#L107
3 - http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/trunk/view/head:/src/app/qml/upstream/PageWithBottomEdge.qml#L108
4 - http://bazaar.launchpad.net/~music-app-dev/music-app/trunk/view/head:/app/ui/NowPlaying.qml#L143