summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-05 04:19:32 -0600
committerJeff Carr <[email protected]>2024-02-05 04:19:32 -0600
commit94b41aa18a230289e30254b3a23b39c88193159a (patch)
tree72f3be3b29cd0bde18e78ca116e65f4832f8625e /size.go
parenta15aea03ea4d0bc73d3773f7c77b380caa57153c (diff)
gadget window displays correctly for some reason
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 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