Set Y pos for indicator explicetly

This commit is contained in:
vladest 2018-03-04 17:24:52 +01:00
parent 8856d4af4f
commit 12a70d57c2

View file

@ -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