diff --git a/src/controls/Page.qml b/src/controls/Page.qml --- a/src/controls/Page.qml +++ b/src/controls/Page.qml @@ -405,7 +405,7 @@ } //It should be T2.Page, Qt 5.7 doesn't like it property Item page: root - height: item ? item.height : 0 + height: item ? item.implicitHeight : 0 active: typeof applicationWindow !== "undefined" && (!globalToolBar.row || root.globalToolBarStyle !== Kirigami.ApplicationHeaderStyle.ToolBar) && //Legacy (typeof applicationWindow === "undefined" || diff --git a/src/controls/private/ActionButton.qml b/src/controls/private/ActionButton.qml --- a/src/controls/private/ActionButton.qml +++ b/src/controls/private/ActionButton.qml @@ -36,7 +36,7 @@ bottomMargin: root.page.footer ? root.page.footer.height : 0 } //smallSpacing for the shadow - height: button.height + Units.smallSpacing + implicitHeight: button.height + Units.smallSpacing clip: true readonly property Page page: root.parent.page