Fix role of Root
This commit is contained in:
parent
cdf23c9b13
commit
f1f71208f2
2
root.go
2
root.go
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user