ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

After Tooltip and its derived Popover and Popconfirm components are scaled externally (such as the body), the internally calculated top and left positioning coordinates do not correspond to each other, and they are misaligned.

Open teoyalls opened this issue 4 years ago • 4 comments
trafficstars

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.7

Environment

vue2、谷歌浏览器等浏览器

Reproduction link

https://www.antdv.com/components/tooltip-cn/

Steps to reproduce

Tooltip及其衍生的Popover和Popconfirm组件在外部(比如body)使用了scale缩放后,内部计算的top和left的定位坐标值对应不上,发生错位。

What is expected?

能够适应缩放。

What is actually happening?

组件内部计算定位的left和top值还是使用了未缩放的来计算,导致漂浮的位置出错。

teoyalls avatar Oct 14 '21 10:10 teoyalls

关注 ref https://github.com/ant-design/ant-design/issues/26681 暂无较好方案

tangjinzhou avatar Oct 16 '21 13:10 tangjinzhou

23年了,还没合并

LixHu avatar Feb 21 '23 08:02 LixHu

placement: 'left'

annihilationism avatar Oct 25 '23 03:10 annihilationism

级联选择器/select组件 也不行,又啥好的解决方案吗?这样太受大屏适配的限制了

Thunder7991 avatar Aug 26 '24 07:08 Thunder7991