Commit 6f8d7f5c authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

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


(cherry picked from commit 147c717f)
parent 6e222f63
......@@ -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