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)) +}