From feff02dd3c0eb73769cea6deed5a38d34717861f Mon Sep 17 00:00:00 2001 From: Hannah Troisi Date: Mon, 25 Jul 2016 10:51:12 -0700 Subject: [PATCH] Update layout-api-debugging.md --- _docs/layout-api-debugging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_docs/layout-api-debugging.md b/_docs/layout-api-debugging.md index 76382770..391834f2 100755 --- a/_docs/layout-api-debugging.md +++ b/_docs/layout-api-debugging.md @@ -19,7 +19,7 @@ All ASLayoutable properties can be applied to _any_ layoutable (e.g. any node or ## Have I considered where to set `ASLayoutable` properties?
-Let's say you have a node (n1) and you wrap it in a layout spec (s1). If you want to wrap the layout spec (s1) in a stack or static spec (s2), you will need to set all of the properties on the spec (s1) and not the node (n1). +Let's say you have a node (`n1`) and you wrap it in a layout spec (`s1`). If you want to wrap the layout spec (`s1`) in a stack or static spec (`s2`), you will need to set all of the properties on the spec (`s1`) and not the node (`n1`). A common examples of this confusion involves flex grow and flex shrink. E.g. a node with `.flexGrow` enabled is wrapped in an inset spec. The inset spec will not grow as we expect. **Solution:** enable `.flexGrow` on the inset spec as well.