Skip to content

overlay,zoom 页面用zoom缩放后,浮层overlay定位问题 #190

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

Open
mhtgogogo opened this issue Dec 14, 2023 · 2 comments
Open

overlay,zoom 页面用zoom缩放后,浮层overlay定位问题 #190

mhtgogogo opened this issue Dec 14, 2023 · 2 comments

Comments

@mhtgogogo
Copy link

页面用zoom缩放后,发现浮层overlay定位有问题,核心是在于Element.getBoundingClientRect() 的获取值,大佬们该咋解决

@wszgrcy
Copy link
Collaborator

wszgrcy commented Dec 14, 2023

如果你说的是matd的话?建议反馈给官方?
如果目前仅仅需要解决的话?建议提供更详细的信息?比如截图

@mhtgogogo
Copy link
Author

angular/components#20467 这个类似,但是并没有解决,如果把overlay直接放入zoom的影响范围内,还是会有问题,感觉还是定位计算,是在zoom影响下还是外,外的话就直接乘个系数,里的话要改算法了

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

2 participants