Commit 77c29f48 authored by DoinLakeFlyer's avatar DoinLakeFlyer

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