diff --git a/doric-iOS/Pod/Classes/Shader/DoricTextNode.m b/doric-iOS/Pod/Classes/Shader/DoricTextNode.m index 0f8eabeb..9667ed81 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricTextNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricTextNode.m @@ -49,7 +49,6 @@ @interface DoricTextNode () @implementation DoricTextNode - (UILabel *)build { return [[[DoricTextView alloc] init] also:^(DoricTextView *it) { - it.textAlignment = NSTextAlignmentCenter; [self ensureParagraphStyle]; }]; } @@ -163,7 +162,7 @@ - (void)blendView:(UILabel *)view forPropName:(NSString *)name propValue:(id)pro - (NSMutableParagraphStyle *)ensureParagraphStyle { if (self.paragraphStyle == nil) { self.paragraphStyle = [NSMutableParagraphStyle new]; - self.paragraphStyle.alignment = self.view.textAlignment; + self.paragraphStyle.alignment = NSTextAlignmentCenter; self.paragraphStyle.lineBreakMode = NSLineBreakByTruncatingTail; } return self.paragraphStyle;