shareable: Bug fix: workaround to fix #562 by disabling extending

This commit is contained in:
Hajime Hoshi 2018-03-19 03:26:31 +09:00
parent c6cd672536
commit d421648e57

View File

@ -39,6 +39,12 @@ func (b *backend) TryAlloc(width, height int) (*packing.Node, bool) {
if n := b.page.Alloc(width, height); n != nil {
return n, true
}
// Break without extending the backend since the current Extend
// implementation includes a bug #562.
// TODO: Fix #562 and implement Extend correctly
break
if !b.page.Extend() {
break
}