Browse Source

QGCRadioButton: Use an odd number to allow proper centralization

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 6 years ago
parent
commit
9c5aa524c5
  1. 3
      src/QmlControls/QGCRadioButton.qml

3
src/QmlControls/QGCRadioButton.qml

@ -24,7 +24,8 @@ RadioButton { @@ -24,7 +24,8 @@ RadioButton {
y: parent.height / 2 - height / 2
Rectangle {
anchors.centerIn: parent
width: Math.round(parent.width * 0.5)
// Width should be an odd number to be centralized by the parent properly
width: 2 * Math.floor(parent.width / 4) + 1
height: width
antialiasing: true
radius: height * 0.5

Loading…
Cancel
Save