diff --git a/VZFlexLayout/core/VZFlexNode.mm b/VZFlexLayout/core/VZFlexNode.mm index db9065d..d8b31fb 100644 --- a/VZFlexLayout/core/VZFlexNode.mm +++ b/VZFlexLayout/core/VZFlexNode.mm @@ -456,20 +456,8 @@ - (UIEdgeInsets)resultPadding{ }; } -- (void)prepareLayout -{ - for(VZFlexNode* node in self.childNodes) - { - [node prepareLayout]; - } - -} - - (void)layout:(CGSize)constrainedSize{ - //prepare layout递归 - [self prepareLayout]; - Flex_layout(_flex_node, constrainedSize.width, constrainedSize.height, [UIScreen mainScreen].scale); }