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

Commit

Permalink
Merge pull request #2646 from Txink/fix-view-cornerRadius
Browse files Browse the repository at this point in the history
fix corner
  • Loading branch information
wqyfavor committed Jul 3, 2019
2 parents c2b3664 + 4e88877 commit 850ac3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ - (void)_drawBorderWithContext:(CGContextRef)context size:(CGSize)size
CGContextSetFillColorWithColor(context, _backgroundColor.CGColor);
UIBezierPath *bezierPath = [UIBezierPath wx_bezierPathWithRoundedRect:rect topLeft:topLeft topRight:topRight bottomLeft:bottomLeft bottomRight:bottomRight];
[bezierPath fill];
_view.backgroundColor = UIColor.clearColor;
}
// Top
if (_borderTopWidth > 0) {
Expand Down
1 change: 1 addition & 0 deletions ios/sdk/WeexSDK/Sources/Model/WXComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,7 @@ - (void)setGradientLayer
if (gradientLayer) {
_backgroundColor = [UIColor colorWithPatternImage:[strongSelf imageFromLayer:gradientLayer]];
strongSelf.view.backgroundColor = _backgroundColor;
[strongSelf setNeedsDisplay];
}
}
});
Expand Down

0 comments on commit 850ac3d

Please sign in to comment.