Commit ecc63cf1 authored by Don Gagne's avatar Don Gagne

Fix some control width problems

parent 0d7fd3ce
......@@ -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
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment