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