LabelCheckbox no longer expands vertically

It should in theory valign to middle this way, but grid layout
suffers from #1
This commit is contained in:
Sasha Koshka 2024-05-18 14:18:02 -04:00
parent 34794f4c77
commit 6497da69ed

View File

@ -25,7 +25,7 @@ func NewLabelCheckbox (value bool, text string) *LabelCheckbox {
box.label.SetAlign(tomo.AlignStart, tomo.AlignMiddle) box.label.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
box.Add(box.checkbox) box.Add(box.checkbox)
box.Add(box.label) box.Add(box.label)
box.SetLayout(layouts.NewGrid([]bool { false, true }, []bool { true })) box.SetLayout(layouts.NewGrid([]bool { false, true }, []bool { false }))
box.OnMouseUp(box.handleMouseUp) box.OnMouseUp(box.handleMouseUp)
box.label.OnMouseUp(box.handleMouseUp) box.label.OnMouseUp(box.handleMouseUp)