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

Commit

Permalink
[iOS] Fix background is set to transparent when no border.
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyfavor committed Apr 11, 2019
1 parent 7b46280 commit f3fd7ec
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,8 @@ - (void)_drawBorderWithContext:(CGContextRef)context size:(CGSize)size
} else {
_lastBorderRecords &= ~WXComponentBorderRecordRight;
}
if (_lastBorderRecords <= 0 || _lastBorderRecords > WXComponentBorderRecordAll) {
CGContextClearRect(context, rect);
} else {
CGContextStrokePath(context);
}

CGContextStrokePath(context);

//clipRadius is beta feature
//TO DO: remove _clipRadius property
Expand Down

0 comments on commit f3fd7ec

Please sign in to comment.