Comment 2 for bug 1424635

Revision history for this message
Tim Peeters (tpeeters) wrote :

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.