From cdfd05c7426b39dc52c3c495b750c056536cd370 Mon Sep 17 00:00:00 2001 From: ChengWei <258775752@qq.com> Date: Wed, 26 Apr 2017 11:14:15 -0700 Subject: [PATCH] Fix the parameter error Summary: Closes https://github.com/facebook/yoga/pull/528 Differential Revision: D4953974 Pulled By: emilsjolander fbshipit-source-id: eda4770d4eb6cf52304d40a1b7ac17c2f0e17148 --- YogaKit/Source/YGLayout.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YogaKit/Source/YGLayout.m b/YogaKit/Source/YGLayout.m index eddbc139..9010852d 100644 --- a/YogaKit/Source/YGLayout.m +++ b/YogaKit/Source/YGLayout.m @@ -245,7 +245,7 @@ YG_PROPERTY(CGFloat, aspectRatio, AspectRatio) size.height = YGUndefined; } [self calculateLayoutWithSize:size]; - YGApplyLayoutToViewHierarchy(self.view, NO); + YGApplyLayoutToViewHierarchy(self.view, preserveOrigin); }