From 9c5aa524c57b2a35131b3fcc0e34479876dde898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 17 May 2019 11:26:22 -0300 Subject: [PATCH] QGCRadioButton: Use an odd number to allow proper centralization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/QmlControls/QGCRadioButton.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/QmlControls/QGCRadioButton.qml b/src/QmlControls/QGCRadioButton.qml index 5134be6af..a4cdc9318 100644 --- a/src/QmlControls/QGCRadioButton.qml +++ b/src/QmlControls/QGCRadioButton.qml @@ -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 -- 2.22.0