You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/09/29 05:29:16 UTC

[incubator-weex] branch double11-fix4 created (now 6d69956)

This is an automated email from the ASF dual-hosted git repository.

moshen pushed a change to branch double11-fix4
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git.


      at 6d69956  [iOS] Fix the problem that background color should use [UIColor clearColor] instance when transparent.

This branch includes the following new commits:

     new 6d69956  [iOS] Fix the problem that background color should use [UIColor clearColor] instance when transparent.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-weex] 01/01: [iOS] Fix the problem that background color should use [UIColor clearColor] instance when transparent.

Posted by mo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

moshen pushed a commit to branch double11-fix4
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git

commit 6d69956799be1e618b0caccfe5178640fdfd248b
Author: qianyuan.wqy <qi...@taobao.com>
AuthorDate: Sun Sep 29 13:28:59 2019 +0800

    [iOS] Fix the problem that background color should use [UIColor clearColor] instance when transparent.
---
 ios/sdk/WeexSDK/Sources/Utility/WXConvert.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m b/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
index 117f2a4..4ad089f 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXConvert.m
@@ -440,7 +440,7 @@ WX_NUMBER_CONVERT(NSUInteger, unsignedIntegerValue)
     g = g8 / 255.f;
     b = b8 / 255.f;
     a = a8 / 255.f;
-    return a < 0.5 ? [UIColor clearColor] : [UIColor colorWithRed:r green:g blue:b alpha:a];
+    return a < (0.5 / 255.f) ? [UIColor clearColor] : [UIColor colorWithRed:r green:g blue:b alpha:a];
 }
 
 + (uint32_t)RGBAColorFromUIColor:(UIColor*)color