From bbc0cebacf45229261d6e8332a60b5b4da03491d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 25 Sep 2019 10:37:19 +0200 Subject: [PATCH] ui/layout: reset Dimensions in Context.Reset Signed-off-by: Elias Naur --- ui/layout/layout.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/layout/layout.go b/ui/layout/layout.go index 725564ae..9ea371df 100644 --- a/ui/layout/layout.go +++ b/ui/layout/layout.go @@ -93,6 +93,7 @@ func (s *Context) Layout(cs Constraints, w Widget) Dimensions { // Reset the context. func (c *Context) Reset(cfg ui.Config, cs Constraints) { c.Constraints = cs + c.Dimensions = Dimensions{} c.Config = cfg if c.Ops == nil { c.Ops = new(ui.Ops)