Lables come vertically aligned to the middle

This commit is contained in:
Sasha Koshka 2024-06-20 17:47:51 -04:00
parent e62afcd667
commit 55637e36db

View File

@ -12,5 +12,6 @@ func NewLabel (text string) *Label {
this := &Label { TextBox: tomo.NewTextBox() }
this.SetRole(tomo.R("objects", "Label", ""))
this.SetText(text)
this.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
return this
}