Fix bug when rendering text the second time

A text node's renderer is often invalidated. Save the renderer's constrained size locally so we can use it when creating a new renderer after invalidation.
This commit is contained in:
rcancro
2016-03-01 08:57:43 -08:00
parent e9fcfefbdd
commit d4bced1fb5

View File

@@ -320,6 +320,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
{
ASLayout *layout = self.calculatedLayout;
if (layout != nil) {
_constrainedSize = layout.size;
_renderer.constrainedSize = layout.size;
}
}