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

也是魅族手机,Meizu Note 5,左边按钮位置不对 #28

Open
vobear opened this issue Dec 8, 2020 · 2 comments
Open

也是魅族手机,Meizu Note 5,左边按钮位置不对 #28

vobear opened this issue Dec 8, 2020 · 2 comments

Comments

@vobear
Copy link

vobear commented Dec 8, 2020

原因:获取到的胶囊按钮top居然小于状态栏高度,导致计算gap不对
let gap = rect.top - systemInfo.statusBarHeight;

测试Meizu Note 5通过的解决办法解决,在navBar.js中加上
//部分机型(比如:Meizu Note5)获取到的胶囊按钮top小于状态栏statusBarHeight高度 if(rect.top < systemInfo.statusBarHeight){ throw 'getMenuButtonBoundingClientRect error'; }

真机调试获取到的信息:
42907c4a56c3550b217d5dd3edde1f2

真机截图:
36f1f1a6156fcda011737185bec2066

解决后真机截图:
d267201f3ae8e45cd3722f3283e3e2d

@BlueGalaxyForest
Copy link

魅族5是什么垃圾手机,赶紧淘汰吧

@yangshengjin
Copy link

yangshengjin commented Jul 18, 2024 via email

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

3 participants