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
Resolve invalid non-full-screen menus on some mobile #7912
Conversation
// this.element.style.top = "50vh"; | ||
// 解决方案二,需要联动上面的 item.style.top | ||
this.element.style.position = "sticky"; | ||
this.element.style.height = "500px"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个值不能写死吧,异常的原因是由于部分机型 window.innerHeight / 2 不等于 50vh 造成的么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该很少有屏幕高度不足的手机,我认为方案二的体验会更好。不写死可以使用方案一。
异常的原因未知,仅在特定机型上出现
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
横屏可能会有问题,看来只能使用方案一了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我测试一下横屏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
有的横屏没有 500px 吧?我直接换成你的第一种方案吧,谢谢。
要不加个动效吧,目前弹出来很突兀 |
不影响的,可以用伺服测试任意高度
|
已提交第一种方案,这里没有有问题的机型,还麻烦再帮忙测试一下。多谢。 |
正式版看一下吧,应该没问题了 |
Passed the following tests:
webview 108
webview 101
Chromium 113
Chromium 86