You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/04/17 05:49:10 UTC

[06/50] [abbrv] incubator-weex git commit: * [ios] bugfix use opaque canvas according to whether needs draw border

* [ios] bugfix use opaque canvas  according to  whether needs draw border


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

Branch: refs/heads/dev
Commit: 2b548d496d93cae0e2c8e3ca7cd0314b2138a9c0
Parents: 09d8869
Author: acton393 <zh...@gmail.com>
Authored: Wed Apr 12 01:55:48 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Apr 12 01:55:48 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2b548d49/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m b/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
index 918f313..dac3c4c 100644
--- a/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
+++ b/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
@@ -564,7 +564,7 @@ do {\
     WXRoundedRect *borderRect = [[WXRoundedRect alloc] initWithRect:rect topLeft:_borderTopLeftRadius topRight:_borderTopRightRadius bottomLeft:_borderBottomLeftRadius bottomRight:_borderBottomRightRadius];
     WXRadii *radii = borderRect.radii;
     BOOL hasBorderRadius = [radii hasBorderRadius];
-    return (!hasBorderRadius) && _opacity == 1.0 && CGColorGetAlpha(_backgroundColor.CGColor) == 1.0;
+    return (!hasBorderRadius) && _opacity == 1.0 && CGColorGetAlpha(_backgroundColor.CGColor) == 1.0 && [self _needsDrawBorder];
 }
 
 #pragma mark - Deprecated