Lables come vertically aligned to the middle
This commit is contained in:
parent
e62afcd667
commit
55637e36db
1
label.go
1
label.go
@ -12,5 +12,6 @@ func NewLabel (text string) *Label {
|
|||||||
this := &Label { TextBox: tomo.NewTextBox() }
|
this := &Label { TextBox: tomo.NewTextBox() }
|
||||||
this.SetRole(tomo.R("objects", "Label", ""))
|
this.SetRole(tomo.R("objects", "Label", ""))
|
||||||
this.SetText(text)
|
this.SetText(text)
|
||||||
|
this.SetAlign(tomo.AlignStart, tomo.AlignMiddle)
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user