Index: sources/gui/qml/compounds/TreatmentAdjustmentUltrafiltrationMetrics.qml =================================================================== diff -u -rf8c80661c806c50047e81d581df0dd6e05f1c8ef -r975e1964b60365b24c74be139c6b84369a7248ce --- sources/gui/qml/compounds/TreatmentAdjustmentUltrafiltrationMetrics.qml (.../TreatmentAdjustmentUltrafiltrationMetrics.qml) (revision f8c80661c806c50047e81d581df0dd6e05f1c8ef) +++ sources/gui/qml/compounds/TreatmentAdjustmentUltrafiltrationMetrics.qml (.../TreatmentAdjustmentUltrafiltrationMetrics.qml) (revision 975e1964b60365b24c74be139c6b84369a7248ce) @@ -29,6 +29,9 @@ property real setVolume : 0 property real volumeRemoved : 0 + implicitWidth : (_ufVolumeRemovedItem.width * 2) + Variables.columnSpacing + implicitHeight : _ufVolumeRemovedItem.height + component ValueItem: Rectangle { id: _valueItem property alias label : _label.text property alias value : _value.text @@ -77,15 +80,23 @@ } ValueItem { id: _ufVolumeRemovedItem - anchors.horizontalCenterOffset : -(width/2 + 30) - label : qsTr("UF Volume Removed: ") - value : _root.volumeRemoved.toFixed(Variables.ultrafiltrationPrecision) + anchors { + horizontalCenter : parent.horizontalCenter + horizontalCenterOffset : -(width + Variables.columnSpacing)/2 + verticalCenter : parent.verticalCenter + } + label : qsTr("UF Volume Removed: ") + value : _root.volumeRemoved.toFixed(Variables.ultrafiltrationPrecision) } ValueItem { id: _ufVolumeGoalItem - anchors.horizontalCenterOffset : -(_ufVolumeRemovedItem.anchors.horizontalCenterOffset) + anchors { + horizontalCenter : parent.horizontalCenter + horizontalCenterOffset : -(_ufVolumeRemovedItem.anchors.horizontalCenterOffset) + verticalCenter : parent.verticalCenter + } textColor : Colors.ufVolumeGoalText - label : qsTr("UF Volume Goal: ") - value : _root.setVolume.toFixed(Variables.ultrafiltrationPrecision) + label : qsTr("UF Volume Goal: ") + value : _root.setVolume.toFixed(Variables.ultrafiltrationPrecision) } }