[go: nahoru, domu]

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

[Android]fix setViewPort invalid #2738

Merged
merged 1 commit into from
Jul 23, 2019

Conversation

katherine95s
Copy link
Contributor
@katherine95s katherine95s commented Jul 22, 2019

Copy link
Contributor
@YorkShen YorkShen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@katherine95s
Copy link
Contributor Author

setViewPortWidth Demo: http://dotwe.org/vue/db55ace59f716bbe58f89dcfd3bf1fc7

@@ -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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to call c++ code if this setInstanceViewPortWidth is invoked by WXMetaModule.setViewport

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants