aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/Pane.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/Pane.qml')
-rw-r--r--src/imports/controls/Pane.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/Pane.qml b/src/imports/controls/Pane.qml
index 62a34797..ee715c86 100644
--- a/src/imports/controls/Pane.qml
+++ b/src/imports/controls/Pane.qml
@@ -42,9 +42,9 @@ import QtQuick.Templates 2.5 as T
T.Pane {
id: control
- implicitWidth: Math.max(implicitBackgroundWidth,
+ implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight,
+ implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
contentHeight + topPadding + bottomPadding)
padding: 12