Commit 147c717f authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Fix binding loop and null derefence warnings in EditablePage::heightForContent

parent 6f2b4fd4
......@@ -34,7 +34,7 @@ Kirigami.ScrollablePage {
value: contentLoader.status != Loader.Loading
}
readonly property real heightForContent: height - topPadding - bottomPadding - globalToolBarItem.height
readonly property real heightForContent: (parent ? parent.height : 0) - topPadding - bottomPadding - (globalToolBarItem ? globalToolBarItem.height : 0)
readonly property var actionsFace: contentLoader.item && contentLoader.item.actionsFace ? contentLoader.item.actionsFace : null
onActionsFaceChanged: Qt.callLater(updateActions)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment