summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-01 13:41:45 -0700
committerJeff Carr <[email protected]>2019-06-01 13:41:45 -0700
commit7d72ca3561fefd4c89f553448810eee545a47880 (patch)
treed979433cc3b9bf201c4090874ea142541f34af66 /gui.go
parentc5f9c6d96f1ce960fa08ab2c77b348a5bcdf03ea (diff)
start handling 'Guiwindow' correctly
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.go b/gui.go
index 42b9297..f60fee1 100644
--- a/gui.go
+++ b/gui.go
@@ -197,7 +197,7 @@ func CreateFontButton(box *GuiBox, action string) *GuiButton {
newGB.Action = action
newGB.FB = ui.NewFontButton()
newGB.Box = box
- newGB.Area = box.Area
+ newGB.Area = box.Window.Area
Data.AllButtons = append(Data.AllButtons, &newGB)
newGB.FB.OnChanged(func (*ui.FontButton) {