From f205a4769acd3bae2b9162071a4fbc81c75a1563 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Tue, 19 Nov 2019 19:54:38 +0800 Subject: [PATCH] feat:fix Text auto resize in iOS --- iOS/Pod/Classes/Shader/DoricTextNode.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iOS/Pod/Classes/Shader/DoricTextNode.m b/iOS/Pod/Classes/Shader/DoricTextNode.m index 9f386205..f73e980f 100644 --- a/iOS/Pod/Classes/Shader/DoricTextNode.m +++ b/iOS/Pod/Classes/Shader/DoricTextNode.m @@ -49,4 +49,9 @@ - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)pro [super blendView:view forPropName:name propValue:prop]; } } + +- (void)blend:(NSDictionary *)props { + [super blend:props]; + [self.view.superview setNeedsLayout]; +} @end