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

适配微信 iPad 屏幕方向 #244

Open
PPpro opened this issue Aug 27, 2021 · 2 comments
Open

适配微信 iPad 屏幕方向 #244

PPpro opened this issue Aug 27, 2021 · 2 comments
Assignees

Comments

@PPpro
Copy link
Collaborator

PPpro commented Aug 27, 2021

大城小胖在微信那边确认 iPad 设备上返回的 screenHeight screenWidth 应该跟屏幕方向无关,
微信底层应该在 安卓和 iOS 上做了一些特殊处理,使上层接口对齐到屏幕方向上的宽高,实际上底层查到的原始数据应该就是竖屏的数据

在 iPad 上就没有这个特殊处理,所以 iPad 上 screenHeight screenWidth 应该跟屏幕方向无关

@PPpro PPpro self-assigned this Aug 27, 2021
@PPpro
Copy link
Collaborator Author

PPpro commented Aug 27, 2021

反馈 deviceOrientation 和 safeArea 这两个数据有做屏幕方向的特殊处理

@PPpro
Copy link
Collaborator Author

PPpro commented Aug 27, 2021

微信小游戏 iPad 下的尺寸总结

感谢来自 @finscn 的总结

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

1 participant