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

tooltip的fixToNode边界问题 #3437

Closed
damaohub opened this issue Jan 11, 2022 · 3 comments
Closed

tooltip的fixToNode边界问题 #3437

damaohub opened this issue Jan 11, 2022 · 3 comments
Labels
feature 💡 A new feature request or an enhancement proposal Outdate This issue is too old to be resolved

Comments

@damaohub
Copy link

问题描述

当tooltip为默认容器并且设置fixToNode时,在容器边界为了被遮挡会自动左右或者上下切换,这导致node会被遮挡。

重现链接

https://codesandbox.io/s/floral-river-1drgz

重现步骤

在线demo

预期行为

期望此种情况下node不遮挡,看源码在判断边界情况时,并没有把fixToNode取负值计算,所以把此种情况考虑在内应该可以解决。

平台

  • 操作系统: macOS
  • 网页浏览器: Google Chrome,
  • G6 版本: 4.5.1

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@Yanyan-Wang Yanyan-Wang added the feature 💡 A new feature request or an enhancement proposal label Jan 11, 2022
@Yanyan-Wang
Copy link
Contributor

好的,看下有没有社区同学愿意共建。需要详细考虑交互方案

@DorothyGuan
Copy link

@Yanyan-Wang

🙋🏻‍♀️ 再贡献一种场景:当tooltip内容过高/过宽的时候,同时设置了fixToNode,会导致tooltip在容器内显示不全的问题,复现:https://codesandbox.io/s/crazy-cache-3bjpf8?file=/index.js
这里对tooltip没有做边缘检测,所以在超出容器边缘的时候就会被遮挡。

ps:如果有必要重开个issue我就重开个

@Aarebecca Aarebecca added the Outdate This issue is too old to be resolved label Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.
这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 💡 A new feature request or an enhancement proposal Outdate This issue is too old to be resolved
Projects
None yet
Development

No branches or pull requests

4 participants