Compare commits
3 Commits
v0.20.0
...
884148f006
| Author | SHA1 | Date | |
|---|---|---|---|
| 884148f006 | |||
| 3e382da688 | |||
| 18b8898644 |
@@ -63,7 +63,7 @@ func NewDialog (kind DialogKind, parent tomo.Window, title, message string, opti
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dialog.controlRow = NewInnerContainer(layouts.ContractHorizontal, options...)
|
dialog.controlRow = NewInnerContainer(layouts.ContractHorizontal, options...)
|
||||||
messageText.SetAttr(tomo.AAlign(tomo.AlignEnd, tomo.AlignEnd))
|
dialog.controlRow.SetAttr(tomo.AAlign(tomo.AlignEnd, tomo.AlignEnd))
|
||||||
|
|
||||||
dialog.SetRoot(NewOuterContainer (
|
dialog.SetRoot(NewOuterContainer (
|
||||||
layouts.Column { true, false },
|
layouts.Column { true, false },
|
||||||
|
|||||||
@@ -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)
|
||||||
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
if sides == ScrollHorizontal {
|
||||||
|
this.SetAttr(tomo.ALayout(layouts.NewGrid(true)(true, false)))
|
||||||
|
} else {
|
||||||
|
this.SetAttr(tomo.ALayout(layouts.NewGrid(true, false)(true, false)))
|
||||||
|
}
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user