example/gophers: update to latest Gio

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-12-04 19:21:44 +01:00
parent 8c9466e03e
commit 85a06223a6
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ func (u *UI) newUserPage(user *user) *userPage {
func (up *userPage) Layout(gtx layout.Context) {
l := up.commitsList
if l.Dragging() {
key.HideInputOp{}.Add(gtx.Ops)
key.SoftKeyboardOp{Show: false}.Add(gtx.Ops)
}
l.Layout(gtx, len(up.commits), func(gtx C, i int) D {
return up.commit(gtx, i)
@@ -252,7 +252,7 @@ func (u *UI) layoutUsers(gtx layout.Context) {
func (u *UI) layoutContributors(gtx layout.Context) layout.Dimensions {
l := u.usersList
if l.Dragging() {
key.HideInputOp{}.Add(gtx.Ops)
key.SoftKeyboardOp{Show: false}.Add(gtx.Ops)
}
return l.Layout(gtx, len(u.users), func(gtx C, i int) D {
return u.user(gtx, i)