From 12a70d57c2903ccdd37fbfc7ccc7733b977a232d Mon Sep 17 00:00:00 2001 From: vladest Date: Sun, 4 Mar 2018 17:24:52 +0100 Subject: [PATCH] Set Y pos for indicator explicetly --- interface/resources/qml/controls-uit/CheckBox.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/resources/qml/controls-uit/CheckBox.qml b/interface/resources/qml/controls-uit/CheckBox.qml index e60f646327..00853ecf6c 100644 --- a/interface/resources/qml/controls-uit/CheckBox.qml +++ b/interface/resources/qml/controls-uit/CheckBox.qml @@ -42,6 +42,7 @@ Original.CheckBox { style: CheckBoxStyle { indicator: Rectangle { id: box + y: (checkBox.height - height) / 2 width: boxSize height: boxSize radius: boxRadius @@ -101,8 +102,8 @@ Original.CheckBox { } label: Label { - text: control.text - color: control.color + text: checkBox.text + color: checkBox.color x: 2 wrapMode: checkBox.wrap ? Text.Wrap : Text.NoWrap elide: checkBox.wrap ? Text.ElideNone : Text.ElideRight