aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/Pane.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/material/Pane.qml')
-rw-r--r--src/imports/controls/material/Pane.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/material/Pane.qml b/src/imports/controls/material/Pane.qml
index 6dfa13fb..b0f702f0 100644
--- a/src/imports/controls/material/Pane.qml
+++ b/src/imports/controls/material/Pane.qml
@@ -42,8 +42,8 @@ import QtQuick.Controls.Material.impl 2.5
T.Pane {
id: control
- implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding)
+ implicitWidth: Math.max(implicitBackgroundWidth, contentWidth + leftPadding + rightPadding)
+ implicitHeight: Math.max(implicitBackgroundHeight, contentHeight + topPadding + bottomPadding)
padding: 12