From 7bcb4cf823efdf38d1cb9de0a2fb720cdd5634d1 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 24 Aug 2024 14:45:31 -0400 Subject: [PATCH] Add SetLayout to Container --- container.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/container.go b/container.go index 5dee8ad..7729540 100644 --- a/container.go +++ b/container.go @@ -49,3 +49,7 @@ func NewInnerContainer (layout tomo.Layout, children ...tomo.Object) *Container return this } +// SetLayout sets the layout of the container. +func (this *Container) SetLayout (layout tomo.Layout) { + this.SetAttr(tomo.ALayout(layout)) +}