Set the alignWhenCentered to false

so the radio button is perfectly centered instead of shifted

Contributes to CURA-6057.
This commit is contained in:
Diego Prado Gesto 2019-04-09 11:14:52 +02:00
parent 87c4c03283
commit 74fe1c5aa8

View File

@ -27,6 +27,7 @@ RadioButton
implicitWidth: UM.Theme.getSize("radio_button").width
implicitHeight: UM.Theme.getSize("radio_button").height
anchors.verticalCenter: parent.verticalCenter
anchors.alignWhenCentered: false
radius: width / 2
border.width: UM.Theme.getSize("default_lining").width
border.color: radioButton.hovered ? UM.Theme.getColor("small_button_text") : UM.Theme.getColor("small_button_text_hover")