iOS:fix when set view's hidden status cannot trigger superview's relayout

This commit is contained in:
pengfei.zhou 2020-02-21 20:52:24 +08:00 committed by osborn
parent 93d26c05fd
commit 3e3e8266d4

View File

@ -262,6 +262,7 @@ - (void)blendView:(UIView *)view forPropName:(NSString *)name propValue:(id)prop
self.view.padding = padding;
} else if ([name isEqualToString:@"hidden"]) {
self.view.hidden = [prop boolValue];
[self.view.superview setNeedsLayout];
} else {
DoricLog(@"Blend View error for View Type :%@, prop is %@", self.class, name);
}