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

fix(tooltip): multi chart when mounting to body #5283

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Conversation

pearmini
Copy link
Member

@pearmini pearmini commented Jul 7, 2023

fix: #5270

  • 出现原因:tooltip 实例是存储在 container 上的,如果 container 是 body,那么所有图表共用一个 tooltip,因为只有一个 body。但是每个 canvas 的 offset 是不同的,所以更新位置出现问题。
  • 解决办法:tooltip 实例存储在对应的 canvas 对象上,而不是 container 上。

@pearmini pearmini force-pushed the tooltip-multi-view branch from 34bde43 to e68a222 Compare July 7, 2023 02:51
@pearmini pearmini merged commit 17ed2cb into v5 Jul 7, 2023
@pearmini pearmini deleted the tooltip-multi-view branch July 7, 2023 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

【v5】interaction.tooltip.mount = "body" 的时候,有多张图表渲染时,tooltip 错位
2 participants