Fix ScrollContainer layout again
This commit is contained in:
parent
3e382da688
commit
884148f006
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user