VChart icon indicating copy to clipboard operation
VChart copied to clipboard

[Bug] click触发自定义tooltip,初始位置计算错误

Open lmsccc opened this issue 5 months ago • 1 comments

Version

latest

Link to Minimal Reproduction

https://visactor.io/vchart/demo-react/usage/line-default-select

Steps to Reproduce

添加如下配置

tooltip: {
    trigger: 'click',
    tooltipRender: () => {
      return <div style={{ height: 400 }}>123</div>
    }
  },

click触发tooltip渲染

Current Behavior

Image

当click触发自定义渲染的tooltip时,初始渲染总是会渲染在鼠标旁边,即使下方已经没有位置了,这会导致tooltip被遮挡

Expected Behavior

当click触发自定义渲染的tootip时,初始渲染可以正确计算tooltip位置,使其不被遮挡

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

lmsccc avatar Jul 23 '25 11:07 lmsccc

@xuefei1313 想了解下,这个问题现在有新的进展吗?

lmsccc avatar Sep 03 '25 02:09 lmsccc