aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-04-17 14:43:11 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-17 12:51:18 +0000
commitc0232099a9fac03ef0f5287b6a26dbbd46669c06 (patch)
treeb539ddea2091d2b3bfa0868a367c612541d4bf6c /src/imports/controls/imagine
parentca406d69544e6ddf20d940d903c9c97bca07ff90 (diff)
Page: fix implicitWidth bindings
Don't add paddings to header and footer width when choosing the max. Padding affects content, not headers and footers. Change-Id: I92381762f97eab384b18510522bf788abecd8338 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/imagine')
-rw-r--r--src/imports/controls/imagine/Page.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/imports/controls/imagine/Page.qml b/src/imports/controls/imagine/Page.qml
index 72f54830..c3dd355e 100644
--- a/src/imports/controls/imagine/Page.qml
+++ b/src/imports/controls/imagine/Page.qml
@@ -43,9 +43,9 @@ T.Page {
id: control
implicitWidth: Math.max(background ? background.implicitWidth : 0,
- Math.max(contentWidth,
- header && header.visible ? header.implicitWidth : 0,
- footer && footer.visible ? footer.implicitWidth : 0) + leftPadding + rightPadding)
+ contentWidth + leftPadding + rightPadding,
+ header && header.visible ? header.implicitWidth : 0,
+ footer && footer.visible ? footer.implicitWidth : 0)
implicitHeight: Math.max(background ? background.implicitHeight : 0,
contentHeight + topPadding + bottomPadding
+ (header && header.visible ? header.implicitHeight + spacing : 0)