diff --git a/qml/MonitorItem.qml b/qml/MonitorItem.qml index a19b2f0..6658b53 100644 --- a/qml/MonitorItem.qml +++ b/qml/MonitorItem.qml @@ -110,14 +110,14 @@ Component UM.Label { text: catalog.i18nc("@label", "E0") color: UM.Theme.getColor("setting_control_text") - width: height + width: UM.Theme.getSize("setting_control").height height: UM.Theme.getSize("setting_control").height horizontalAlignment: Text.AlignHCenter } Cura.SecondaryButton { iconSource: UM.Theme.getIcon("ChevronSingleUp"); - leftPadding: (width - iconSize) / 2 + leftPadding: (_buttonSize - iconSize) / 2 width: _buttonSize height: _buttonSize @@ -125,7 +125,7 @@ Component } Cura.SecondaryButton { iconSource: UM.Theme.getIcon("ChevronSingleDown"); - leftPadding: (width - iconSize) / 2 + leftPadding: (_buttonSize - iconSize) / 2 width: _buttonSize height: _buttonSize