Skip to content

Commit 54341cc

Browse files
chenchangqingchenchangqing
authored andcommitted
不管rtl,还是ltr计算方式保持一致
1 parent 1b65c09 commit 54341cc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

YYText/Component/YYTextLayout.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,8 @@ + (YYTextLayout *)layoutWithContainer:(YYTextContainer *)container text:(NSAttri
522522
CGPoint ctLineOrigin = lineOrigins[i];
523523

524524
// https://github.com/ibireme/YYText/issues/930
525-
if ([UIApplication sharedApplication].userInterfaceLayoutDirection == UIUserInterfaceLayoutDirectionRightToLeft) {
526-
ctLineOrigin.x = 0;
527-
}
525+
// 不管rtl,还是ltr计算方式保持一致
526+
ctLineOrigin.x = 0;
528527

529528
// UIKit coordinate system
530529
CGPoint position;

0 commit comments

Comments
 (0)