← Back to team overview

touch-packages team mailing list archive

[Bug 1424635] Re: Locked header does not work with conditional loading components

 

I added some prints in our Page code. In Page10.qml (also valid for Page
1.1), I have this now:

    // avoid using parent.height because parent may be a Loader which does not have its height set.
    height: parentNode ? page.flickable ? parentNode.height : parentNode.height - internal.headerHeight : undefined
    onHeightChanged: print("height of "+page+" changed to "+parentNode.height+" - "+internal.headerHeight+" = "+height)

and this is being printed for the incorrect page:

qml: parent node of Page11_QMLTYPE_35(0x2779620) = Tab_QMLTYPE_26(0x217f4f0)
qml: parent height = 400
qml: height of Page11_QMLTYPE_35(0x2779620) changed to 400 - 72 = 328
qml: parent node of Page11_QMLTYPE_35(0x2779620) = Tab_QMLTYPE_26(0x217f4f0)
qml: parent height = 400
qml: height of Page11_QMLTYPE_35(0x2779620) changed to 400 - 72 = 400

so it seems that height is not updated, even though
internal.headerHeight is correct here.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1424635

Title:
  Locked header does not work with conditional loading components

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  Trying to use the flickable property to make the header locked does
  not work as expected with conditional loading components. The attached
  sample QML code shows the issue. On the first tab, where the component
  is directly loaded, the header is locked and working as expected. On
  the second one the flickable component seems to be drawn over the
  header. The problem seems to be gone if we change the window height.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1424635/+subscriptions


References