Commit 9c5aa524 authored by Patrick José Pereira's avatar Patrick José Pereira

QGCRadioButton: Use an odd number to allow proper centralization

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent fee4363c
......@@ -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
......
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