From 79233a35656686c1db1758ff8908cce7114234fd Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 10 Aug 2019 16:50:44 +0200 Subject: [PATCH] apps/gophers: update gioui.org/ui version Signed-off-by: Elias Naur --- apps/go.mod | 2 +- apps/gophers/ui.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/go.mod b/apps/go.mod index 7ebd9a80..68c19227 100644 --- a/apps/go.mod +++ b/apps/go.mod @@ -3,7 +3,7 @@ module gioui.org/apps go 1.12 require ( - gioui.org/ui v0.0.0-20190810102917-1a15d7241ac4 + gioui.org/ui v0.0.0-20190810144902-ba3a952af2b9 github.com/google/go-github/v24 v24.0.1 golang.org/x/exp v0.0.0-20190627132806-fd42eb6b336f golang.org/x/image v0.0.0-20190703141733-d6a02ce849c9 diff --git a/apps/gophers/ui.go b/apps/gophers/ui.go index e1694a3c..614c24a4 100644 --- a/apps/gophers/ui.go +++ b/apps/gophers/ui.go @@ -233,7 +233,7 @@ func (up *userPage) Layout(c ui.Config, q input.Queue, ops *ui.Ops, cs layout.Co key.HideInputOp{}.Add(ops) } for l.Init(c, q, ops, cs, len(up.commits)); l.More(); l.Next() { - l.Elem(up.commit(c, ops, l.Constraints(), l.Index())) + l.End(up.commit(c, ops, l.Constraints(), l.Index())) } return l.Layout() } @@ -342,7 +342,7 @@ func (u *UI) layoutContributors(c ui.Config, q input.Queue, ops *ui.Ops, cs layo key.HideInputOp{}.Add(ops) } for l.Init(c, q, ops, cs, len(u.users)); l.More(); l.Next() { - l.Elem(u.user(c, ops, l.Constraints(), l.Index())) + l.End(u.user(c, ops, l.Constraints(), l.Index())) } return l.Layout() }