From 288460452184a807b0a2969bf3f75796aa23bcf5 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 22 Oct 2019 08:42:59 +0200 Subject: [PATCH] example/kitchen: clean up Signed-off-by: Elias Naur --- example/kitchen/kitchen.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/example/kitchen/kitchen.go b/example/kitchen/kitchen.go index c5f2cfca..df500bad 100644 --- a/example/kitchen/kitchen.go +++ b/example/kitchen/kitchen.go @@ -22,6 +22,7 @@ import ( ) func main() { + editor.SetText(longText) ic, err := material.NewIcon(icons.ContentAdd) if err != nil { log.Fatal(err) @@ -71,13 +72,7 @@ var ( icon *material.Icon ) -func init() { - editor.SetText(longText) -} - func kitchen(gtx *layout.Context, th *material.Theme) { - gtx.Constraints.Width.Min = 0 - gtx.Constraints.Height.Min = 0 widgets := []func(){ func() { th.H3(topLabel).Layout(gtx)