diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-05-03 12:00:09 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-06 09:28:02 +0000 |
commit | 2b34a7fa43b0f7fcfc8c615abe29f9c29c93bdfb (patch) | |
tree | 58065269d8201b0aed101142e3387023f11ce35d | |
parent | f9bc1b540413466b53ecf6d15016422ada314181 (diff) |
Imagine: fix GroupBox's bottom edge being clipped
Use the actual padding from the nine patch image rather than the
hard-coded 12.
Fixes: QTBUG-91924
Change-Id: I4707ae173c088625657a135680619cf646e3a9e2
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
(cherry picked from commit 9a10ab40b7bc3db21f48ff004c5c5525cbfd40de)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/imports/controls/imagine/GroupBox.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/imports/controls/imagine/GroupBox.qml b/src/imports/controls/imagine/GroupBox.qml index 346e9877..4a0bddee 100644 --- a/src/imports/controls/imagine/GroupBox.qml +++ b/src/imports/controls/imagine/GroupBox.qml @@ -53,7 +53,6 @@ T.GroupBox { leftPadding: background ? background.leftPadding : 0 rightPadding: background ? background.rightPadding : 0 bottomPadding: background ? background.bottomPadding : 0 - padding: 12 label: Label { width: control.width @@ -88,7 +87,7 @@ T.GroupBox { x: -leftInset y: control.topPadding - control.bottomPadding - topInset width: control.width + leftInset + rightInset - height: control.height + topInset + bottomInset - control.topPadding + control.padding + height: control.height + topInset + bottomInset - control.topPadding + control.bottomPadding source: Imagine.url + "groupbox-background" NinePatchImageSelector on source { |