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

为什么对页面进行镜像之后,dom-aligin的定位就不准确了 #70

Open
mudi-1125 opened this issue Feb 1, 2023 · 2 comments

Comments

@mudi-1125
Copy link

为什么对页面进行镜像操作后,body上加ttransform: scaleX(-1);,dom-aligin的定位就不准确了

@amibug
Copy link

amibug commented Mar 13, 2023

遇到同样的问题,在source和target的父元素上添加transform: scale(0.5)等缩放逻辑后, dom-aligin 不精准

@cyrilluce
Copy link

翻了下代码,进行定位时,没有考虑元素 offsetParent 存在 transform 的问题。
也同样影响到了 ant-design-vue 的相关定位(dropdown、tooltip)

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

3 participants