From 94b41aa18a230289e30254b3a23b39c88193159a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 5 Feb 2024 04:19:32 -0600 Subject: gadget window displays correctly for some reason 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 4fe3b43..b8971e9 100644 --- a/size.go +++ b/size.go @@ -116,7 +116,7 @@ func (w *guiWidget) sizeBox() (int, int) { continue } sizeW, sizeH := child.Size() - if child.direction == widget.Horizontal { + if child.node.State.Direction == widget.Horizontal { maxW += sizeW if sizeH > maxH { maxH = sizeH -- cgit v1.2.3