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

[Bug]: Calling the showById method of the Tooltip tooltip, the position of the tooltip is incorrect #6729

Open
2 of 10 tasks
hcxcomeon opened this issue Jan 15, 2025 · 1 comment
Labels
status: waiting for maintainer These issues have not yet been reviewed by a maintainer

Comments

@hcxcomeon
Copy link

Describe the bug / 问题描述

PixPin_2025-01-15_15-16-26
image

plugins: [
{
key: 'toolKey',
type: 'tooltip',
trigger: 'click',
getContent: () => {
return '123'
}
}
]

const divDom = document.createElement('div')
divDom.textContent = 'text'
divDom.style.background = 'red'
divDom.addEventListener('click', () => {
const tool = graph.getPluginInstance('toolKey')
tool.showById('Classification')
})
document.getElementById('container').appendChild(divDom)

Reproduction link / 复现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

1.注册一个Tooltip,
2.通过其他方式调用showById触发其显示

G6 Version / G6 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他
@hcxcomeon hcxcomeon added the status: waiting for maintainer These issues have not yet been reviewed by a maintainer label Jan 15, 2025
@github-actions github-actions bot changed the title [Bug]: 调用Tooltip提示框的showById方法,提示框出现的位置不正确 [Bug]: Calling the showById method of the Tooltip tooltip, the position of the tooltip is incorrect Jan 15, 2025
@hcxcomeon
Copy link
Author

g6版本 5.0.42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for maintainer These issues have not yet been reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant