Fix ScrollContainer layout again

This commit is contained in:
Sasha Koshka 2024-07-26 17:56:29 -04:00
parent 3e382da688
commit 884148f006

View File

@ -73,7 +73,7 @@ func NewScrollContainer (sides ScrollSide) *ScrollContainer {
this.OnKeyUp(this.handleKeyUp)
this.SetRole(tomo.R("objects", "ScrollContainer"))
this.SetTag(sides.String(), true)
if sides == ScrollVertical {
if sides == ScrollHorizontal {
this.SetAttr(tomo.ALayout(layouts.NewGrid(true)(true, false)))
} else {
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))