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

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Txink committed Jul 10, 2019
1 parent 4e88877 commit 2533381
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ - (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;
WXPerformBlockOnMainThread(^{
_view.backgroundColor = UIColor.clearColor;
});
}
// Top
if (_borderTopWidth > 0) {
Expand Down

0 comments on commit 2533381

Please sign in to comment.