Skip to content

Commit

Permalink
Fix popup sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLakeFlyer committed Feb 14, 2025
1 parent 3dc6858 commit ffc27a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/QmlControls/QGCComboBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ T.ComboBox {
property bool sizeToContents: false
property string alternateText: ""

property real _popupWidth
property real _popupWidth: width
property bool _onCompleted: false
property bool _showBorder: qgcPal.globalTheme === QGCPalette.Light

Expand All @@ -54,7 +54,6 @@ T.ComboBox {
}

function _calcPopupWidth() {
_popupWidth = control.width
if (_onCompleted && sizeToContents && model) {
var largestTextWidth = 0
for (var i = 0; i < model.length; i++){
Expand Down

0 comments on commit ffc27a1

Please sign in to comment.