summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
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