Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Wordwrap set to break by word by default. (#2455)
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyfavor authored and YorkShen committed May 17, 2019
1 parent f855198 commit bba6db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Component/WXTextComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ - (NSMutableAttributedString *)buildCTAttributeString
paragraphStyle.lineBreakMode = NSLineBreakByClipping;
} else {
// set default lineBreakMode
paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping;
paragraphStyle.lineBreakMode = NSLineBreakByWordWrapping;
}
_truncationLine = NO;
if (_textOverflow && [_textOverflow length] > 0) {
Expand Down

0 comments on commit bba6db7

Please sign in to comment.