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

SafeArea 在微信浏览器中不生效问题 #5985

Closed
lwQin opened this issue Feb 23, 2023 · 3 comments
Closed

SafeArea 在微信浏览器中不生效问题 #5985

lwQin opened this issue Feb 23, 2023 · 3 comments
Labels

Comments

@lwQin
Copy link
Contributor

lwQin commented Feb 23, 2023

Version of antd-mobile

5.28.0

Operating system and its version

iOS

Browser and its version

微信浏览器(AppleWebKit 605.1.15)

Sandbox to reproduce

https://mobile.ant.design/gallery/safe-area

What happened?

直接进入 demo 页正常
IMG_2400
经过路由跳转底部出现控制条后 SafeArea 失效
IMG_2401

Relevant log output

No response

@lwQin lwQin added the bug label Feb 23, 2023
@lwQin
Copy link
Contributor Author

lwQin commented Feb 23, 2023

好像只能自己手动处理了。。这个算是苹果的 feature

@lwQin lwQin closed this as completed Feb 23, 2023
@JimmyZDD
Copy link

JimmyZDD commented Jan 9, 2025

参照: https://segmentfault.com/a/1190000022191869#item-5
需要将viewport设置为cover,env和constant才能生效。
<meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover">

@lwQin
Copy link
Contributor Author

lwQin commented Jan 10, 2025

参照: https://segmentfault.com/a/1190000022191869#item-5 需要将viewport设置为cover,env和constant才能生效。 <meta name="viewport" content="width=device-width,initial-scale=1.0,viewport-fit=cover">

一直都是这个配置
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">

这个是路径跳转过就会出现这个问题

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

No branches or pull requests

2 participants