From 55637e36db398267313383ed048f712af32671ec Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Thu, 20 Jun 2024 17:47:51 -0400 Subject: [PATCH] Lables come vertically aligned to the middle --- label.go | 1 + 1 file changed, 1 insertion(+) diff --git a/label.go b/label.go index a3f7806..22a9cf9 100644 --- a/label.go +++ b/label.go @@ -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 }