NewRoot now correctly returns a Root struct

This commit is contained in:
Sasha Koshka 2024-09-12 17:24:37 -04:00
parent 7628903e59
commit c30ac90577

View File

@ -11,8 +11,8 @@ type Root struct {
}
// NewRoot creates a new container.
func NewRoot (layout tomo.Layout, children ...tomo.Object) *Container {
this := &Container { }
func NewRoot (layout tomo.Layout, children ...tomo.Object) *Root {
this := &Root { }
this.init(layout, children...)
this.box.SetRole(tomo.R("objects", "Root"))
this.box.SetTag("outer", true)