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

一个潜在的兼容性Bug #17

Open
tao2years opened this issue Apr 1, 2021 · 2 comments
Open

一个潜在的兼容性Bug #17

tao2years opened this issue Apr 1, 2021 · 2 comments

Comments

@tao2years
Copy link

在项目中,发现没有使用wx.getSystemInfo这个API去获取使用机型的系统信息。
然后通过windowWidth,windowHeight和safeArea来调整小程序的布局设置。

没有通过wx.getSystemInfo的适配,在部分机型上可能会出现一些样式问题。

@leeyeh
Copy link
Contributor

leeyeh commented Apr 1, 2021

整个布局是自适应的,应该不关心具体的 windowWidth,windowHeight。

但像底部虚拟按键、顶部刘海之类的,的确可以通过 safeArea 做更好的适配。但目前仅仅依靠厂商的默认策略来适配了。

这个 Demo 项目更多的还是关注功能与逻辑。对于样式会尽可能保持简单,所以如果不是什么影响可用性的问题,应该不会进行更详细的适配了。

@tao2years
Copy link
Author

好的 谢谢!

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

No branches or pull requests

2 participants