From bcd32f83725c98e73ec05b60e6abb769df2a4764 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Thu, 17 Jun 2021 20:18:23 +0200 Subject: [PATCH] Fixed panic in Overflow. --- ui/overflow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/overflow.go b/ui/overflow.go index f7cf261..3f8b7ad 100644 --- a/ui/overflow.go +++ b/ui/overflow.go @@ -146,7 +146,7 @@ func (o *overflow) Render(ctx Context) { var content = o.Content.Bounds() content.Min = geom.ZeroPtF32 err := o.content.Update(ctx, content.Size()) - if err != nil { + if err != nil && err != ErrNewBufferSize { panic(err) } o.content.Render(ctx, o.bounds.Min, func(Context, geom.PointF32) {