Skip to content

Commit

Permalink
Stop manually setting system insets
Browse files Browse the repository at this point in the history
This has been unnecessary since
gioui/gio@e124865

After upgrading gio, this code would make the keyboard briefly show
and then immediately hide after selecting a text field.

Closes: #18 [via git-merge-pr]
  • Loading branch information
psanford committed Dec 28, 2021
1 parent 00dfef6 commit 6721813
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,7 @@ func (ui *UI) loop(w *app.Window) error {
}()
}

layout.Inset{
Bottom: e.Insets.Bottom,
Left: e.Insets.Left,
Right: e.Insets.Right,
Top: e.Insets.Top,
}.Layout(gtx, func(gtx C) D {
return drawTabs(gtx, th)
})
drawTabs(gtx, th)
e.Frame(gtx.Ops)

default:
Expand Down

0 comments on commit 6721813

Please sign in to comment.