YorkShen commented on a change in pull request #2738: [Android]fix setViewPort
invalid
URL: https://github.com/apache/incubator-weex/pull/2738#discussion_r308169075
##########
File path: android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
##########
@@ -454,6 +454,7 @@ public void setUseScroller(boolean use) {
public void setInstanceViewPortWidth(int instanceViewPortWidth) {
this.mInstanceViewPortWidth = instanceViewPortWidth;
this.mAutoAdjustDeviceWidth = false;
+
WXBridgeManager.getInstance().setViewPortWidth(getInstanceId(),mInstanceViewPortWidth);
Review comment:
There is no need to call c++ code if this `setInstanceViewPortWidth` is
invoked by WXMetaModule.setViewport
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services