Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[WEEX-593][iOS]image can not show correct borderRadius (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
doumafang authored and cxfeng1 committed Aug 27, 2018
1 parent 3c2f5ac commit 8b2381f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,16 @@ - (BOOL)_needsDrawBorder
return NO;
}

- (void)_resetNativeBorderRadius
{
if (_borderTopLeftRadius == _borderTopRightRadius && _borderTopRightRadius == _borderBottomLeftRadius && _borderBottomLeftRadius == _borderBottomRightRadius)
{
_layer.cornerRadius = _borderBottomLeftRadius;
return;
}
[self _clipsToBounds];
}

- (BOOL)needsDrawRect
{
if (_isCompositingChild) {
Expand Down

0 comments on commit 8b2381f

Please sign in to comment.