Browse Source

JoystickConfigButtons: Add missing sizeToContents for ComboBox

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 4 years ago committed by Don Gagne
parent
commit
86fe6d2c6b
  1. 3
      src/VehicleSetup/JoystickConfigButtons.qml

3
src/VehicleSetup/JoystickConfigButtons.qml

@ -75,6 +75,7 @@ Item { @@ -75,6 +75,7 @@ Item {
id: buttonActionCombo
width: ScreenTools.defaultFontPixelWidth * 26
model: _activeJoystick ? _activeJoystick.assignableActionTitles : []
sizeToContents: true
function _findCurrentButtonAction() {
if(_activeJoystick) {
@ -164,6 +165,7 @@ Item { @@ -164,6 +165,7 @@ Item {
width: ScreenTools.defaultFontPixelWidth * 15
fact: controller.parameterExists(-1, "BTN"+index+"_FUNCTION") ? controller.getParameterFact(-1, "BTN" + index + "_FUNCTION") : null;
indexModel: false
sizeToContents: true
}
FactComboBox {
@ -171,6 +173,7 @@ Item { @@ -171,6 +173,7 @@ Item {
width: ScreenTools.defaultFontPixelWidth * 15
fact: controller.parameterExists(-1, "BTN"+index+"_SFUNCTION") ? controller.getParameterFact(-1, "BTN" + index + "_SFUNCTION") : null;
indexModel: false
sizeToContents: true
}
}
}

Loading…
Cancel
Save