Fix layout of example supplementary nodes

This commit is contained in:
Levi McCallum
2015-10-11 10:56:39 -07:00
parent fddb0061b0
commit a9023dd400
2 changed files with 2 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ static CGFloat kInsets = 15.0;
- (ASLayoutSpec *)layoutSpecThatFits:(ASSizeRange)constrainedSize
{
ASCenterLayoutSpec *center = [[ASCenterLayoutSpec alloc] init];
center.centeringOptions = ASCenterLayoutSpecCenteringXY;
center.child = _textNode;
UIEdgeInsets insets = UIEdgeInsetsMake(kInsets, kInsets, kInsets, kInsets);
return [ASInsetLayoutSpec insetLayoutSpecWithInsets:insets child:center];