From 56cebf6db647436734950f157ab286d69bc32486 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 5 Feb 2024 04:28:42 -0600 Subject: inverse logic for sizes of boxes (orientation was wrong) Signed-off-by: Jeff Carr --- size.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'size.go') diff --git a/size.go b/size.go index b8971e9..a7581e2 100644 --- a/size.go +++ b/size.go @@ -116,7 +116,7 @@ func (w *guiWidget) sizeBox() (int, int) { continue } sizeW, sizeH := child.Size() - if child.node.State.Direction == widget.Horizontal { + if child.node.State.Direction == widget.Vertical { maxW += sizeW if sizeH > maxH { maxH = sizeH -- cgit v1.2.3