Skip to content

Commit

Permalink
Add indicator to calculate dropdown width
Browse files Browse the repository at this point in the history
  • Loading branch information
boutinb committed Dec 5, 2024
1 parent de617fb commit bfe343f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QMLComponents/components/JASP/Controls/ComboBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit bfe343f

Please sign in to comment.