antvis/G6

indented tree 节点大小不一样时, 后续节点收起,再展开收起节点时会存在覆盖 #4261

rainLeaf888 posted onGitHub

问题描述

image

image 图1中,1的坐标位置 = 3的坐标y+高度 , 因为 3是折叠起来的,最终1的坐标位置 < 2的坐标位置+2的高度, 再次展开1时,1节点后的子节点y跟1节点一样,就会覆盖2节点。

重现链接

https://codesandbox.io/s/dry-water-61gtfk?file=/index.js

重现步骤

初始化1节点坐标y就不对, demo 中 「客户一级行业」初始化位置不对,展开「平台」之后,「客户一级行业」位置就正确了

预期行为

期望1节点的子节点展开,不会覆盖2节点

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • 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] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests