diff --git a/layouts/rowcol.go b/layouts/rowcol.go index d195dae..338cbfd 100644 --- a/layouts/rowcol.go +++ b/layouts/rowcol.go @@ -54,7 +54,7 @@ func (column Column) Arrange (hints tomo.LayoutHints, boxes []tomo.Box) { if expands(index) { nExpanding ++ } else { - freeSpace -= float64(box.MinimumSize().X) + freeSpace -= float64(box.MinimumSize().Y) } } expandingSize = freeSpace / float64(nExpanding) @@ -125,7 +125,7 @@ func (row Row) Arrange (hints tomo.LayoutHints, boxes []tomo.Box) { if expands(index) { nExpanding ++ } else { - freeSpace -= float64(box.MinimumSize().Y) + freeSpace -= float64(box.MinimumSize().X) } } expandingSize = freeSpace / float64(nExpanding)