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) {