Skip to content

Commit fd59dbf

Browse files
authored
Updated ASCenterLayout sizingOptions
Changed ASCenterLayoutSpec sizing options from ASRelativeLayoutSpecSizingOptionDefault to ASCenterLayoutSpecSizingOptionDefault
1 parent cf58468 commit fd59dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/layout2-layoutspec-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ If the center spec's width or height is unconstrained, it shrinks to the size of
275275
{
276276
ASStaticSizeDisplayNode *subnode = ASDisplayNodeWithBackgroundColor([UIColor greenColor], CGSizeMake(70, 100));
277277
return [ASCenterLayoutSpec centerLayoutSpecWithCenteringOptions:ASCenterLayoutSpecCenteringXY
278-
sizingOptions:ASRelativeLayoutSpecSizingOptionDefault
278+
sizingOptions:ASCenterLayoutSpecSizingOptionDefault
279279
child:subnode]
280280
}
281281
</pre>

0 commit comments

Comments
 (0)