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

Popconfirm 在某些情况下 autoAdjustOverflow 的箭头位置显示错误

Open nuintun opened this issue 1 year ago • 7 comments

Reproduction link

Edit on StackBlitz

Steps to reproduce

设置 Popconfirm 的 placement="topRight",并保证左上角没有足够的显示位置。其它 placement 未详细测试,估计也有此类问题!

What is expected?

箭头显示在正确位置

image

What is actually happening?

箭头显示在错误位置

image

Environment Info
antd 5.18.0
React 18
System WIN11
Browser Chrome

nuintun avatar Jun 04 '24 13:06 nuintun

好像是顶部空间不够导致的自适应下来的

image

wanpan11 avatar Jun 06 '24 01:06 wanpan11

image 是这个classname添加的不对吧,添加成ant-popover-placement-bottomLeft应该就是好的。本来想提个pr找了一圈没找到

QDyanbing avatar Jun 06 '24 03:06 QDyanbing

是这个classname添加的不对吧,添加成ant-popover-placement-bottomLeft应该就是好的。本来想提个pr找了一圈没找到

这个是动态加上去的 顶部空间不够就会使用别的 placement,剪头也需要跟着变但是没变

wanpan11 avatar Jun 06 '24 03:06 wanpan11

Seems to be placement problem, I will try to fix this issue.

nova1751 avatar Jun 16 '24 11:06 nova1751

这个问题我也遇到了,fix好像还没merge

likeechizenbest avatar Sep 02 '24 07:09 likeechizenbest

问题依旧存在

nuintun avatar Apr 23 '25 07:04 nuintun