Fixed panic in Overflow.

This commit is contained in:
Sander Schobers 2021-06-17 20:18:23 +02:00
parent e5bfd1394c
commit bcd32f8372

View File

@ -146,7 +146,7 @@ func (o *overflow) Render(ctx Context) {
var content = o.Content.Bounds() var content = o.Content.Bounds()
content.Min = geom.ZeroPtF32 content.Min = geom.ZeroPtF32
err := o.content.Update(ctx, content.Size()) err := o.content.Update(ctx, content.Size())
if err != nil { if err != nil && err != ErrNewBufferSize {
panic(err) panic(err)
} }
o.content.Render(ctx, o.bounds.Min, func(Context, geom.PointF32) { o.content.Render(ctx, o.bounds.Min, func(Context, geom.PointF32) {