-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
IconMenu Popover position is wrong after page zoom on iOS deviced #9802
Comments
@oliviertassinari, I'm not sure whether tag v0.x is applicable to issues that do relate ONLY to v0 (and not to v1), or just to mark that they relate to v0.x, so just a quick note - issue is reproducible on v1 as well and the link to material-ui-next is attached. |
@stas-lesiuk Any clue on how we can improve the situation? |
@oliviertassinari I don't have a solution, but it looks like the problem relates to getAnchorPosition method in Popover.js, it already has some iOS-specific logic, but looks like it doesn't calculate offset properly when zoomed. A similar issue seems to be described in #4638 (comment), but it was rather about general iOS offset calculations that the after zoom ones. |
I'm closing as a duplicate of #17636. |
Expected Behavior
Menu's popover position after zoom is the same as in case no zoom was performed.
Current Behavior
The position of popover is awkward on iOS devices.
Steps to Reproduce (for bugs)
Issue could be reproduced on material-ui official website, on IconMenu component subpage:
http://www.material-ui.com/#/components/icon-menu
Seems to be reproducible for material-ui v1 as well:
https://material-ui.com/demos/menus/#max-height-menus
Attaching screenshots for conveniece:
Context
We're going to implement 508 compliance in future and there is a requirement saying page should remain usable after 6x or even 8x zoom.
Your Environment
Issue is related to iOS devices only, works good on Android.
Tested on iPhone 8 and iPad, on both Chrome and Safari.
The text was updated successfully, but these errors were encountered: