From 3289513720a4482ed2fdcd991f63fed8951e8e1f Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 15 Nov 2019 15:05:35 +0800 Subject: [PATCH] feat:fix render props error --- iOS/Pod/Classes/Shader/DoricLayouts.h | 6 +++--- iOS/Pod/Classes/Shader/DoricSuperNode.m | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/iOS/Pod/Classes/Shader/DoricLayouts.h b/iOS/Pod/Classes/Shader/DoricLayouts.h index 8b825e6f..0ebdbc93 100644 --- a/iOS/Pod/Classes/Shader/DoricLayouts.h +++ b/iOS/Pod/Classes/Shader/DoricLayouts.h @@ -31,9 +31,9 @@ typedef struct DoricMargin DoricMargin; DoricMargin DoricMarginMake(CGFloat left, CGFloat top, CGFloat right, CGFloat bottom); typedef NS_ENUM(NSInteger, DoricLayoutSpec) { - DoricLayoutExact, - DoricLayoutWrapContent, - DoricLayoutAtMost, + DoricLayoutExact = 0, + DoricLayoutWrapContent = 1, + DoricLayoutAtMost = 2, }; typedef NS_ENUM(NSInteger, DoricGravity) { diff --git a/iOS/Pod/Classes/Shader/DoricSuperNode.m b/iOS/Pod/Classes/Shader/DoricSuperNode.m index de6422ad..439fc6e9 100644 --- a/iOS/Pod/Classes/Shader/DoricSuperNode.m +++ b/iOS/Pod/Classes/Shader/DoricSuperNode.m @@ -39,6 +39,8 @@ - (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop [self mixinSubNode:subModel]; [self blendSubNode:subModel]; } + } else { + [super blendView:view forPropName:name propValue:prop]; } }