iOS:fix TextNode cannot switch back to normal style
This commit is contained in:
parent
83f24e0eb3
commit
ba099b6f7e
@ -110,6 +110,8 @@ - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)pro
|
||||
}
|
||||
if (fontDescriptor) {
|
||||
font = [UIFont fontWithDescriptor:fontDescriptor size:0];
|
||||
} else {
|
||||
font = [UIFont systemFontOfSize:view.font.pointSize];
|
||||
}
|
||||
view.font = font;
|
||||
} else if ([name isEqualToString:@"maxWidth"]) {
|
||||
@ -200,7 +202,7 @@ - (void)blend:(NSDictionary *)props {
|
||||
|
||||
- (void)requestLayout {
|
||||
[super requestLayout];
|
||||
|
||||
|
||||
[self.textGradientProps also:^(NSDictionary *dict) {
|
||||
if (CGSizeEqualToSize(self.textGradientSize, self.view.frame.size)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user