From 67218130289a6c0aa3c21d3723fb6a438bd003a6 Mon Sep 17 00:00:00 2001 From: Peter Sanford Date: Tue, 28 Dec 2021 14:29:21 -0600 Subject: [PATCH] Stop manually setting system insets This has been unnecessary since https://github.com/gioui/gio/commit/e1248651c8717e686f664279bc0a994b160a5ead 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] --- ui/ui.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ui/ui.go b/ui/ui.go index e90bf5c..50a566e 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -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: