antvis/G6

Do you want to work on this issue?

You can request for a bounty in order to promote it!

【V5】树布局中,节点高度不固定的情况下,getHeight按节点实际高度设置,会出现节点布局重叠问题 #6060

xuwb posted onGitHub

Describe the bug / 问题描述

使用 compact-box 或 mindmap 布局,如果节点大小不同,在 layout 的 getHeight 中返回对应的节点 size 的高度,会存在节点重叠、子节点位置不标准、节点间间距不同的问题。

image

https://stackblitz.com/edit/react-1sfavs-6jfncy?file=index.js

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

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response


Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests