From bfe343f8c028d527058e667bc962c4603bdce942 Mon Sep 17 00:00:00 2001 From: boutinb Date: Thu, 5 Dec 2024 11:41:49 +0100 Subject: [PATCH] Add indicator to calculate dropdown width --- QMLComponents/components/JASP/Controls/ComboBox.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QMLComponents/components/JASP/Controls/ComboBox.qml b/QMLComponents/components/JASP/Controls/ComboBox.qml index 675e6f6428..1924cf9b74 100644 --- a/QMLComponents/components/JASP/Controls/ComboBox.qml +++ b/QMLComponents/components/JASP/Controls/ComboBox.qml @@ -71,7 +71,7 @@ ComboBoxBase property bool isEmptyValue: comboBox.addEmptyValue && comboBox.currentIndex === 0 property bool showEmptyValueStyle: !comboBox.showEmptyValueAsNormal && isEmptyValue property double longestFieldWidth: (comboBox.showVariableTypeIcon ? contentIcon.x + contentIcon.width + jaspTheme.contentMargin : 0) + - textMetrics.width + 2 * jaspTheme.contentMargin + textMetrics.width + indicator.width + 3 * jaspTheme.contentMargin TextMetrics {