diff --git a/apps/go.mod b/apps/go.mod index 8ce53245..def4f11e 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-20190713112858-112368a2e39a + gioui.org/ui v0.0.0-20190714110834-6e97d65af145 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/main.go b/apps/gophers/main.go index 339f44c8..f241ea09 100644 --- a/apps/gophers/main.go +++ b/apps/gophers/main.go @@ -228,7 +228,7 @@ func (a *App) run() error { case app.DrawEvent: ops.Reset() a.cfg = e.Config - cs := layout.ExactConstraints(a.w.Size()) + cs := layout.ExactConstraints(e.Size) a.Layout(ops, cs) if a.profiling { a.layoutTimings(ops, cs) diff --git a/apps/hello/hello.go b/apps/hello/hello.go index 1ee9656e..b0f24c41 100644 --- a/apps/hello/hello.go +++ b/apps/hello/hello.go @@ -52,7 +52,7 @@ func loop(w *app.Window) error { return e.Err case app.DrawEvent: cfg = e.Config - cs := layout.ExactConstraints(w.Size()) + cs := layout.ExactConstraints(e.Size) ops.Reset() ops.Begin() draw.ColorOp{Color: maroon}.Add(ops)