Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cml.getSystemInfo()返回的viewportHeight不准确 #619

Open
wtvue opened this issue Oct 25, 2022 · 0 comments
Open

cml.getSystemInfo()返回的viewportHeight不准确 #619

wtvue opened this issue Oct 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@wtvue
Copy link

wtvue commented Oct 25, 2022

bug描述
cml.getSystemInfo()返回的viewportHeight不准确

复现bug的步骤

  1. 进入微信小程序,调用cml.getSystemInfo()
  2. 进入自定义导航栏页面(也即navigationStyle=custom),获取的视口高度仍然是之前的高度,原因是cml.getSystemInfo做了缓存处理,有值就不会再调用微信的方法,导致页面结构变了,数据还是旧的数据。

问题截图

编译环境信息

  • chameleon-tool 版本:[1.0.8]
  • nodejs版本、npm版本:[node v14.16.0、npm 6.14.11]
  • 电脑操作系统:无需提供

运行环境信息

  • 端版本: 无需提供
  • 手机机型: 无需提供
@wtvue wtvue added the bug Something isn't working label Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant