antvis/G6

tooltip的fixToNode边界问题 #3437

damaohub posted onGitHub

问题描述

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

重现链接

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

重现步骤

在线demo

预期行为

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

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


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。

posted by github-actions[bot] over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests