aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine/GroupBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/imagine/GroupBox.qml')
-rw-r--r--src/imports/controls/imagine/GroupBox.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/imagine/GroupBox.qml b/src/imports/controls/imagine/GroupBox.qml
index d18af5ba..af6e2376 100644
--- a/src/imports/controls/imagine/GroupBox.qml
+++ b/src/imports/controls/imagine/GroupBox.qml
@@ -44,11 +44,11 @@ T.GroupBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
- label ? label.implicitWidth + leftPadding + rightPadding : 0,
+ implicitLabelWidth + leftPadding + rightPadding,
contentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight, contentHeight + topPadding + bottomPadding)
- topPadding: (background ? background.topPadding : 0) + (label && label.implicitWidth > 0 ? label.implicitHeight + spacing : 0)
+ topPadding: (background ? background.topPadding : 0) + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
leftPadding: background ? background.leftPadding : 0
rightPadding: background ? background.rightPadding : 0
bottomPadding: background ? background.bottomPadding : 0