Store role in Boxes

This commit is contained in:
2024-06-03 21:13:18 -04:00
parent d8ae20d739
commit 2ab920eb26
14 changed files with 40 additions and 19 deletions

View File

@@ -60,7 +60,8 @@ func NewScrollContainer (sides ScrollSide) *ScrollContainer {
}
this.CaptureScroll(true)
this.OnScroll(this.handleScroll)
tomo.Apply(this, tomo.R("objects", "ScrollContainer", sides.String()))
this.SetRole(tomo.R("objects", "ScrollContainer", sides.String()))
tomo.Apply(this)
this.SetLayout(this.layout)
return this
}