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) {
|
if (fontDescriptor) {
|
||||||
font = [UIFont fontWithDescriptor:fontDescriptor size:0];
|
font = [UIFont fontWithDescriptor:fontDescriptor size:0];
|
||||||
|
} else {
|
||||||
|
font = [UIFont systemFontOfSize:view.font.pointSize];
|
||||||
}
|
}
|
||||||
view.font = font;
|
view.font = font;
|
||||||
} else if ([name isEqualToString:@"maxWidth"]) {
|
} else if ([name isEqualToString:@"maxWidth"]) {
|
||||||
@ -200,7 +202,7 @@ - (void)blend:(NSDictionary *)props {
|
|||||||
|
|
||||||
- (void)requestLayout {
|
- (void)requestLayout {
|
||||||
[super requestLayout];
|
[super requestLayout];
|
||||||
|
|
||||||
[self.textGradientProps also:^(NSDictionary *dict) {
|
[self.textGradientProps also:^(NSDictionary *dict) {
|
||||||
if (CGSizeEqualToSize(self.textGradientSize, self.view.frame.size)) {
|
if (CGSizeEqualToSize(self.textGradientSize, self.view.frame.size)) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user