diff --git a/apps/go.mod b/apps/go.mod index 386925df..4b10f20a 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-20190729095055-5e1f078b12ae + gioui.org/ui v0.0.0-20190729101251-5f2adf9b2f22 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 0968231e..3d3751b2 100644 --- a/apps/gophers/main.go +++ b/apps/gophers/main.go @@ -626,12 +626,6 @@ type fill struct { func (f fill) Layout(ops *ui.Ops, cs layout.Constraints) layout.Dimens { d := image.Point{X: cs.Width.Max, Y: cs.Height.Max} - if d.X == ui.Inf { - d.X = cs.Width.Min - } - if d.Y == ui.Inf { - d.Y = cs.Height.Min - } dr := f32.Rectangle{ Max: f32.Point{X: float32(d.X), Y: float32(d.Y)}, }