~eliasnaur/gio-example

a2d198051072df1ed53038d9c39027a86be39a71 — Chris Waldon 7 months ago 7bd64fd
Revert "x/component: rely on new system inset handling"

This reverts commit 7bd64fd1150f5c64383798e6bf870d9336ec5f67.

I misunderstood why Egon changed the inset handling in the way that
he did. His changes were correct.

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
1 files changed, 3 insertions(+), 1 deletions(-)

M x/component/main.go
M x/component/main.go => x/component/main.go +3 -1
@@ 613,7 613,9 @@ func loop(w *app.Window) error {
			case system.DestroyEvent:
				return e.Err
			case system.FrameEvent:
				gtx := layout.NewContext(&ops, e)
				skipInset := e
				skipInset.Insets = system.Insets{}
				gtx := layout.NewContext(&ops, skipInset)
				for _, event := range bar.Events(gtx) {
					switch event := event.(type) {
					case component.AppBarNavigationClicked: