Fixed panic in Overflow.
This commit is contained in:
parent
e5bfd1394c
commit
bcd32f8372
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user