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

Commit

Permalink
* [ios] add comment for modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
acton393 committed May 2, 2017
1 parent 83c8208 commit 601b6e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@ - (CGSize)calculateTextHeightWithWidth:(CGFloat)aWidth
CFRelease(frameRef);

if (WX_SYS_VERSION_LESS_THAN(@"10.0")) {
// there is something wrong with coreText drawing text height, trying to fix this with more efficent way.
if(actualLineCount && actualLineCount < lineCount) {
suggestSize.height = suggestSize.height * actualLineCount / lineCount;
}
Expand Down

0 comments on commit 601b6e4

Please sign in to comment.