diff --git a/doric-iOS/Pod/Classes/Shader/DoricFlexNode.m b/doric-iOS/Pod/Classes/Shader/DoricFlexNode.m index 937b91cd..c734bad1 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricFlexNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricFlexNode.m @@ -39,6 +39,9 @@ - (CGSize)sizeThatFits:(CGSize)size { } }]; } + if (self.yoga.isLeaf) { + return CGSizeZero; + } return [self.yoga intrinsicSize]; } @end