Fix role of Root

This commit is contained in:
Sasha Koshka 2024-09-12 14:54:14 -04:00
parent cdf23c9b13
commit f1f71208f2

View File

@ -14,7 +14,7 @@ type Root struct {
func NewRoot (layout tomo.Layout, children ...tomo.Object) *Container { func NewRoot (layout tomo.Layout, children ...tomo.Object) *Container {
this := &Container { } this := &Container { }
this.init(layout, children...) this.init(layout, children...)
this.box.SetRole(tomo.R("objects", "Container")) this.box.SetRole(tomo.R("objects", "Root"))
this.box.SetTag("outer", true) this.box.SetTag("outer", true)
return this return this
} }