aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/universal/Page.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/universal/Page.qml')
-rw-r--r--src/quickcontrols/universal/Page.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/universal/Page.qml b/src/quickcontrols/universal/Page.qml
index 7e2c69aa5b..dd1bdd8a6d 100644
--- a/src/quickcontrols/universal/Page.qml
+++ b/src/quickcontrols/universal/Page.qml
@@ -9,11 +9,11 @@ T.Page {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
+ implicitContentWidth + leftPadding + rightPadding,
implicitHeaderWidth,
implicitFooterWidth)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
+ implicitContentHeight + topPadding + bottomPadding
+ (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
+ (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))