weex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guris...@apache.org
Subject [1/2] incubator-weex git commit: Update WXWebComponent.m
Date Tue, 26 Sep 2017 08:58:38 GMT
Repository: incubator-weex
Updated Branches:
  refs/heads/0.13-dev 833b0da5b -> 842c7d3bd


Update WXWebComponent.m

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/127b4718
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/127b4718
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/127b4718

Branch: refs/heads/0.13-dev
Commit: 127b4718077ae7ff279b2e60facc7b92e8e7479d
Parents: 02ce702
Author: caozhiyong <caozhiyong1983n@163.com>
Authored: Fri May 19 09:37:49 2017 +0800
Committer: GitHub <noreply@github.com>
Committed: Fri May 19 09:37:49 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/127b4718/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
index ab8b63d..b696b22 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXWebComponent.m
@@ -82,6 +82,8 @@ WX_EXPORT_METHOD(@selector(goForward))
     _webview = (WXWebView *)self.view;
     _webview.delegate = self;
     _webview.allowsInlineMediaPlayback = YES;
+    [_webview setBackgroundColor:[UIColor clearColor]];
+    _webview.opaque = NO;
     _jsContext = [_webview valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"];
     __weak typeof(self) weakSelf = self;
     _jsContext[@"$notifyWeex"] = ^(JSValue *data) {


Mime
View raw message