aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols2/imagine/ComboBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols2/imagine/ComboBox.qml')
-rw-r--r--src/quickcontrols2/imagine/ComboBox.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols2/imagine/ComboBox.qml b/src/quickcontrols2/imagine/ComboBox.qml
index bd44519daf..784ac79ea6 100644
--- a/src/quickcontrols2/imagine/ComboBox.qml
+++ b/src/quickcontrols2/imagine/ComboBox.qml
@@ -47,10 +47,10 @@ T.ComboBox {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentItem.implicitWidth + background ? (background.leftPadding + background.rightPadding) : 0)
+ implicitContentWidth + (background ? background.leftPadding + background.rightPadding : 0))
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
Math.max(implicitContentHeight,
- implicitIndicatorHeight) + background ? (background.topPadding + background.bottomPadding) : 0)
+ implicitIndicatorHeight) + (background ? background.topPadding + background.bottomPadding : 0))
leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)