Skip to content

Commit 259ca0a

Browse files
committed
qml: fix layout issue with checkmark in OptionButton
1 parent f3150f7 commit 259ca0a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/qml/controls/OptionButton.qml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Button {
3333
spacing: 3
3434
ColumnLayout {
3535
spacing: 3
36+
Layout.fillWidth: true
3637
Header {
3738
Layout.fillWidth: true
3839
Layout.preferredWidth: 0
@@ -64,11 +65,12 @@ Button {
6465
}
6566
}
6667
}
67-
Loader {
68-
id: detail_loader
69-
visible: button.checked
70-
active: true
71-
sourceComponent: Button {
68+
Item {
69+
height: parent.height
70+
width: 40
71+
Button {
72+
anchors.centerIn: parent
73+
visible: button.checked
7274
icon.source: "image://images/check"
7375
icon.color: Theme.color.neutral9
7476
icon.height: 24

0 commit comments

Comments
 (0)