Skip to content

Commit

Permalink
[Docs] minor fixes in Layout (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanton authored and rahul-malik committed Dec 5, 2019
1 parent 294f27b commit 9337795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_docs/layout2-layoutspec-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ You may also subclass <a href="layout2-layoutspec-types.html#aslayoutspec">`ASLa
{
_subnode.style.preferredSize = CGSizeMake(constrainedSize.max.width,
constrainedSize.max.height / 2.0);
return [ASWrapperLayoutSpec wrapperWithLayoutElement:subnode];
return [ASWrapperLayoutSpec wrapperWithLayoutElement:_subnode];
}
</pre>

Expand Down
2 changes: 1 addition & 1 deletion docs/_docs/layout2-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The play button on top of the `ASVideoNode` (top image) is placed using an `ASCe

<!-- With manual layout, each element gets its position and size set individually. With Texture's Layout API, very -->

Some elements have an "intrinsic size" based on their immediately available content. For example, ASTextNode can calculate its size based on its attributed string. Other nodes that have an intrinsic size include
Some elements have an "intrinsic size" based on their immediately available content. For example, ASTextNode can calculate its size based on its attributed string. Nodes that have an intrinsic size include

- `ASImageNode`
- `ASTextNode`
Expand Down

0 comments on commit 9337795

Please sign in to comment.