Browse Source

Fix blank display after page change in instrument panel

QGC4.4
DoinLakeFlyer 5 years ago
parent
commit
77c29f48cb
  1. 7
      src/FlightMap/Widgets/ValuePageWidget.qml

7
src/FlightMap/Widgets/ValuePageWidget.qml

@ -112,7 +112,7 @@ Column { @@ -112,7 +112,7 @@ Column {
anchors.bottom: _settingsUnlocked ? undefined : parent.bottom
QGCLabel {
width: columnRepeater.columnWidth
anchors.horizontalCenter: parent.horizontalCenter
height: _columnButtonsTotalHeight
font.pointSize: ScreenTools.smallFontPointSize
text: _settingsUnlocked ? qsTr("BLANK") : ""
@ -123,7 +123,7 @@ Column { @@ -123,7 +123,7 @@ Column {
QGCLabel {
id: label
width: columnRepeater.columnWidth
anchors.horizontalCenter: parent.horizontalCenter
font.pointSize: ScreenTools.smallFontPointSize
text: object.label.toUpperCase()
horizontalAlignment: Text.AlignHCenter
@ -132,12 +132,11 @@ Column { @@ -132,12 +132,11 @@ Column {
QGCLabel {
id: value
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: label.visible ? 2 : 0
anchors.top: label.visible ? label.bottom : parent.top
width: columnRepeater.columnWidth
font.pointSize: _rgFontSizes[object.fontSize]
text: visible ? (object.fact.enumOrValueString + (object.showUnits ? object.fact.units : "")) : ""
horizontalAlignment: Text.AlignHCenter
visible: object.fact
}
}

Loading…
Cancel
Save