Horizontal layouts work nearly perfectly

This commit is contained in:
2023-01-17 01:40:49 -05:00
parent 9459bcd942
commit 40bdffc8be
2 changed files with 43 additions and 12 deletions

View File

@@ -301,9 +301,9 @@ func (element *Container) HandleSelection (direction tomo.SelectionDirection) (o
}
// FIXME: fix this!
// func (element *Container) MinimumHeightFor (width int) (height int) {
// return element.layout.MinimumHeightFor(element.children, width)
// }
func (element *Container) MinimumHeightFor (width int) (height int) {
return element.layout.MinimumHeightFor(element.children, width)
}
func (element *Container) HandleDeselection () {
element.selected = false