Fix ScrollContainer layout
This commit is contained in:
parent
18b8898644
commit
3e382da688
@ -73,7 +73,11 @@ 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 {
|
||||||
|
this.SetAttr(tomo.ALayout(layouts.NewGrid(true)(true, false)))
|
||||||
|
} else {
|
||||||
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
||||||
|
}
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user