Oh yeah yeah!
This commit is contained in:
@@ -58,6 +58,10 @@ func (element *List) Draw (destination canvas.Canvas) {
|
||||
}
|
||||
|
||||
func (element *List) Layout () {
|
||||
if element.scroll.Y > element.maxScrollHeight() {
|
||||
element.scroll.Y = element.maxScrollHeight()
|
||||
}
|
||||
|
||||
margin := element.theme.Margin(tomo.PatternSunken)
|
||||
padding := element.theme.Padding(tomo.PatternSunken)
|
||||
bounds := padding.Apply(element.entity.Bounds())
|
||||
|
||||
@@ -198,7 +198,10 @@ func (element *Scroll) updateMinimumSize () {
|
||||
}
|
||||
|
||||
func (element *Scroll) updateEnabled () {
|
||||
horizontal, vertical := element.child.ScrollAxes()
|
||||
horizontal, vertical := false, false
|
||||
if element.child != nil {
|
||||
horizontal, vertical = element.child.ScrollAxes()
|
||||
}
|
||||
if element.horizontal != nil {
|
||||
element.horizontal.SetEnabled(horizontal)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user