You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/05/02 09:31:39 UTC

[2/3] incubator-weex git commit: * [ios] add comment for modifications

* [ios] add comment for modifications


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/601b6e42
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/601b6e42
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/601b6e42

Branch: refs/heads/0.13-dev
Commit: 601b6e428c49c9e7bdcba9e0746409600287111a
Parents: 83c8208
Author: acton393 <zh...@gmail.com>
Authored: Tue May 2 16:36:57 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue May 2 16:36:57 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/601b6e42/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
index 61d94e5..c2fb5da 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
@@ -834,6 +834,7 @@ do {\
     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;
         }