From d633e0f5f6ddaba01ce7a90a2a2ad7f702405b59 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 4 Apr 2023 13:44:38 -0400 Subject: [PATCH] Why wont the tecxt alighn ughghghgh --- examples/table/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/table/main.go b/examples/table/main.go index f0dc6c8..1cb9d04 100644 --- a/examples/table/main.go +++ b/examples/table/main.go @@ -4,6 +4,7 @@ import "fmt" import "git.tebibyte.media/sashakoshka/tomo" import "git.tebibyte.media/sashakoshka/tomo/layouts" import "git.tebibyte.media/sashakoshka/tomo/elements" +import "git.tebibyte.media/sashakoshka/tomo/textdraw" import "git.tebibyte.media/sashakoshka/tomo/elements/containers" import _ "git.tebibyte.media/sashakoshka/tomo/backends/all" @@ -26,6 +27,7 @@ func run () { label := elements.NewLabel ( fmt.Sprintf("%d, %d", row, column), false) + label.SetAlign(textdraw.AlignCenter) table.Set(row, column, label) } index ++