From 7d72ca3561fefd4c89f553448810eee545a47880 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 1 Jun 2019 13:41:45 -0700 Subject: start handling 'Guiwindow' correctly Signed-off-by: Jeff Carr --- gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui.go') 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) { -- cgit v1.2.3