You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2019/04/11 03:03:22 UTC
[incubator-weex] branch master updated: [iOS] Fix background is set
to transparent when no border.
This is an automated email from the ASF dual-hosted git repository.
jianhan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git
The following commit(s) were added to refs/heads/master by this push:
new f3fd7ec [iOS] Fix background is set to transparent when no border.
new 0cbb060 Merge pull request #2304 from wqyfavor/fix-background
f3fd7ec is described below
commit f3fd7ec949ba6e04301bf820dfef2c067d421139
Author: wqyfavor <qi...@taobao.com>
AuthorDate: Thu Apr 11 10:59:46 2019 +0800
[iOS] Fix background is set to transparent when no border.
---
ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m b/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
index 88a3efb..4982dde 100644
--- a/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
+++ b/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
@@ -430,11 +430,8 @@ typedef NS_ENUM(NSInteger, WXComponentBorderRecord) {
} 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