* [ios] bugfix about single border radius conflict with opacity

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

Branch: refs/heads/0.16-dev
Commit: 82f468f0f98d44d9fa512c41a000e98c572613a0
Parents: e52d273
Author: acton393 <[email protected]>
Authored: Tue Sep 19 15:11:58 2017 +0800
Committer: acton393 <[email protected]>
Committed: Tue Sep 19 15:11:58 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/82f468f0/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 5d22939..49a90db 100644
--- a/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
+++ b/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
@@ -334,6 +334,7 @@
     // fill background color
     if (_backgroundColor && CGColorGetAlpha(_backgroundColor.CGColor) > 0) {
         CGContextSetFillColorWithColor(context, _backgroundColor.CGColor);
+        CGContextSetAlpha(context, _opacity);
         UIBezierPath *bezierPath = [UIBezierPath 
wx_bezierPathWithRoundedRect:rect topLeft:topLeft topRight:topRight 
bottomLeft:bottomLeft bottomRight:bottomRight];
         [bezierPath fill];
     }

Reply via email to