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

table columns项配置fixed,render方法中使用tooltip显示位置不正确 #40492

Closed
Thinking80s opened this issue Feb 1, 2023 · 7 comments

Comments

@Thinking80s
Copy link

Thinking80s commented Feb 1, 2023

Reproduction link

https://4x.ant.design/components/tooltip-cn/

Steps to reproduce

https://codesandbox.io/s/gu-ding-lie-antd-4-24-7-forked-971c53
table columns 中 render 方法
<Tooltip
placement="top"
title={desc}
getPopupContainer={(triggerNode: any) => triggerNode}
>

{desc}

What is expected?

能够正常显示tooltip位置

What is actually happening?

image

没有正常显示tooltip位置

Environment Info
antd 4.24.3
React 17.0.2
System macos 12.6.1
Browser 版本 109.0.5414.119(正式版本) (x86_64)
@Yuiai01
Copy link
Contributor

Yuiai01 commented Feb 1, 2023

能提供一个复现问题的链接吗?

@luo3house
Copy link
Contributor

luo3house commented Feb 1, 2023

getPopupContainer 指向 triggerNode 也就是头像昵称所在那个框,它把 Tooltip 挡了

参考 #40191,我觉得去掉 getPopupContainer 就应该可以

@Thinking80s
Copy link
Author

去掉是可以,但是列表滚动情况tooltip不会跟随了

@Thinking80s
Copy link
Author

能提供一个复现问题的链接吗?

https://codesandbox.io/s/gu-ding-lie-antd-4-24-7-forked-971c53

@MadCcc
Copy link
Member

MadCcc commented Feb 8, 2023

试试把 container 放在滚动区域上?

@afc163
Copy link
Member

afc163 commented May 24, 2023

试试把 container 放在滚动区域上?

可以使用这种方式。

@afc163 afc163 closed this as completed May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants