[ 
https://issues.apache.org/jira/browse/WEEX-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596266#comment-16596266
 ] 

ASF GitHub Bot commented on WEEX-593:
-------------------------------------

cxfeng1 closed pull request #1485: [WEEX-593][iOS]image can not show correct 
borderRadius
URL: https://github.com/apache/incubator-weex/pull/1485
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m 
b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
index 737e0d03ff..89ce8dd7e5 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -300,7 +300,8 @@ - (void)_resetNativeBorderRadius
 {
     if (_borderTopLeftRadius == _borderTopRightRadius && _borderTopRightRadius 
== _borderBottomLeftRadius && _borderBottomLeftRadius == 
_borderBottomRightRadius)
     {
-        _layer.cornerRadius = _borderBottomLeftRadius;
+        WXRoundedRect *borderRect = [[WXRoundedRect alloc] 
initWithRect:self.calculatedFrame topLeft:_borderTopLeftRadius 
topRight:_borderTopRightRadius bottomLeft:_borderBottomLeftRadius 
bottomRight:_borderBottomRightRadius];
+        _layer.cornerRadius = borderRect.radii.topLeft;
         return;
     }
     [self _clipsToBounds];


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> image can not show correct borderRadius
> ---------------------------------------
>
>                 Key: WEEX-593
>                 URL: https://issues.apache.org/jira/browse/WEEX-593
>             Project: Weex
>          Issue Type: Bug
>            Reporter: qz
>            Assignee: Adam Feng
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to