diff --git a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml index 9dacb75f4d3c43c98455b28d44ff889c7230e633..6bb0c4adaa767b24b94a2f9d2af8a04d9cd1a9e5 100644 --- a/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml +++ b/src/AutoPilotPlugins/PX4/PX4SimpleFlightModes.qml @@ -40,6 +40,9 @@ Item { property real _margins: ScreenTools.defaultFontPixelHeight / 2 + readonly property real _flightModeComboWidth: ScreenTools.defaultFontPixelWidth * 23 + readonly property real _channelComboWidth: ScreenTools.defaultFontPixelWidth * 20 + QGCPalette { id: qgcPal; colorGroupEnabled: panel.enabled } PX4SimpleFlightModesController { @@ -95,7 +98,7 @@ Item { FactComboBox { id: modeChannelCombo - width: ScreenTools.defaultFontPixelWidth * 15 + width: _channelComboWidth fact: controller.getParameterFact(-1, "RC_MAP_FLTMODE") indexModel: false } @@ -117,7 +120,7 @@ Item { FactComboBox { id: modeCombo - width: ScreenTools.defaultFontPixelWidth * 20 + width: _flightModeComboWidth fact: controller.getParameterFact(-1, "COM_FLTMODE" + index) indexModel: false } @@ -163,7 +166,7 @@ Item { FactComboBox { id: optCombo - width: ScreenTools.defaultFontPixelWidth * 15 + width: _channelComboWidth fact: parent.fact indexModel: false } diff --git a/src/ui/MainWindowLeftPanel.qml b/src/ui/MainWindowLeftPanel.qml index 997368eca6034ae7b361115d72a62e5574f18dc9..b4ebc5567ec812a2199c67ed74c13b6e94d5b20a 100644 --- a/src/ui/MainWindowLeftPanel.qml +++ b/src/ui/MainWindowLeftPanel.qml @@ -130,7 +130,7 @@ Item { // This is the menu dialog panel which is anchored to the left edge Rectangle { id: __leftMenu - width: ScreenTools.defaultFontPixelWidth * 12 + width: ScreenTools.defaultFontPixelWidth * 14 anchors.left: parent.left anchors.top: __topSeparator.bottom anchors.bottom: parent.bottom