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

el-tooltip在chrome128,body zoom:0.75定位错误 #22967

Open
dxdleikai opened this issue Sep 12, 2024 · 8 comments
Open

el-tooltip在chrome128,body zoom:0.75定位错误 #22967

dxdleikai opened this issue Sep 12, 2024 · 8 comments

Comments

@dxdleikai
Copy link

No description provided.

@dxdleikai
Copy link
Author

iShot_2024-09-12_14 47 17

@dxdleikai
Copy link
Author

element-ui 2.15.14 vue2.6.11

@chenhangbin2008
Copy link

我也遇到了一样的问题。

@chuqizhen
Copy link

同样的问题

@chuqizhen
Copy link

大佬能不能帮忙看下 @yxy297376376

@buliang
Copy link

buliang commented Oct 30, 2024

zoom的时候我也遇到了,网上说append-to-body=“false” 这会导致zindex层级失效,有没有大佬写好修改源码定位的插件

@HillLiang
Copy link

我看了一下每一个使用popover的地方都是通过new 完成的,而且使用到这个插件的地方很多。所以如果不介意的话,可以考虑这个方案,判断浏览器的版本是否是chrome 且 大于等于128,如果是的话把getBoundingClientRect这个函数直接改了,把返回的内容都除zoom,得到的就是正常的数值

@buliang
Copy link

buliang commented Nov 13, 2024

其实官方只要稍微改下那个定位的地方 将left和top除以scale就好了,非得别人去改源码 lib/utils/popper.js 634行635行

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

5 participants