Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] minor fixes in Layout #1735

Merged
merged 1 commit into from
Dec 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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