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

mip-link打开iframe页面无法正确计算高度的问题(IOS12,IOS13环境) #724

Open
ivanfjz opened this issue Nov 11, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ivanfjz
Copy link

ivanfjz commented Nov 11, 2019

BUG 描述
IOS12,IOS13环境下,mip-link打开的链接页面,由于是在iframe里的,为了看起来效果是打开新页面,需要给iframe设置一个和浏览器一样的高度样式值,但是在给iframe设置的高度超过实际浏览器可视高度,导致页面高度过高,mip-fixed组件看起来失效的问题(手动修改iframe的高度后,mip-fixed组件重新恢复效果)

复现步骤
自己写个页面,可以复现这个问题:http://mip.yaowoxia.com/outer.html
请在苹果手机里打开此链接

期望结果
猜测问题出现的原因:是MIP.viewport.getHeight()方法在IOS环境下获取的可视高度有问题。按文档描述应该是获取页面的可视高度,但是实际上获取的是页面总高度。希望能修复这个问题

截图
请看这个页面复现效果网页,用苹果手机打开:http://mip.yaowoxia.com/outer.html

环境及版本信息:

  • OS: [IOS12,IOS13]
  • Browser [e.gsafari]
  • 浏览器 版本 根据系统版本升级
  • mip-cli 版本

其他信息
其他补充信息

@clark-t clark-t self-assigned this Jan 14, 2020
@clark-t clark-t added the bug Something isn't working label Jan 14, 2020
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

2 participants