summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-05 04:28:42 -0600
committerJeff Carr <[email protected]>2024-02-05 04:28:42 -0600
commit56cebf6db647436734950f157ab286d69bc32486 (patch)
tree144d53c596713337d075592aa23056a3afb283ca /size.go
parent94b41aa18a230289e30254b3a23b39c88193159a (diff)
inverse logic for sizes of boxes (orientation was wrong)
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'size.go')
-rw-r--r--size.go2
1 files changed, 1 insertions, 1 deletions
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