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.OnKeyUp(this.handleKeyUp)
|
||||||
this.SetRole(tomo.R("objects", "ScrollContainer"))
|
this.SetRole(tomo.R("objects", "ScrollContainer"))
|
||||||
this.SetTag(sides.String(), true)
|
this.SetTag(sides.String(), true)
|
||||||
if sides == ScrollVertical {
|
if sides == ScrollHorizontal {
|
||||||
this.SetAttr(tomo.ALayout(layouts.NewGrid(true)(true, false)))
|
this.SetAttr(tomo.ALayout(layouts.NewGrid(true)(true, false)))
|
||||||
} else {
|
} else {
|
||||||
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
||||||
|
Loading…
Reference in New Issue
Block a user