You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/07/10 10:19:22 UTC
[incubator-weex] branch master updated: fix crash
This is an automated email from the ASF dual-hosted git repository.
moshen 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 2533381 fix crash
new ccd09da Merge pull request #2674 from Txink/fix-view-cornerRadius
2533381 is described below
commit 2533381d14256cb3710deae1919ccd51bdb62c56
Author: Txink <12...@qq.com>
AuthorDate: Wed Jul 10 18:11:21 2019 +0800
fix crash
---
ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m b/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
index 04e7dda..9acb010 100644
--- a/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
+++ b/ios/sdk/WeexSDK/Sources/Display/WXComponent+Display.m
@@ -353,7 +353,9 @@ typedef NS_ENUM(NSInteger, WXComponentBorderRecord) {
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) {