Skip to content

树图使用indented布局,direction为H时,root节点的左右两侧节点无法同时顶部对齐 #4853

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

Open
ali081809 opened this issue Aug 25, 2023 · 4 comments

Comments

@ali081809
Copy link

问题描述

使用dropCap: false了之后,只有一侧是正常顶部对齐的,如何让两侧都跟root节点顶部对齐呢????

重现链接

重现步骤

设置了dropCap: false,之后,仅有一侧能够跟root节点顶部对齐

预期行为

两侧节点都能够对齐顶部

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

a562f9d96a0174fd62a72c714b060791edb5be2817954996b0e81209fa57abf9QzpcVXNlcnNcMTMzMDVcQXBwRGF0YVxSb2FtaW5nXERpbmdUYWxrXDE0MTQxMTk4NTRfdjJcSW1hZ2VGaWxlc1wxNjkyOTQ4MzE1ODU1XzA5MEU2OUM1LTA3NjYtNGIxNC1BQTcwLUM3M0FCRkQxNTA0RS5wbmc=

补充说明(可选)

No response

@Yanyan-Wang
Copy link
Contributor

只支持第一个子节点

@ali081809
Copy link
Author

有什么解决办法吗

@Yanyan-Wang
Copy link
Contributor

可以手动调整节点位置…… graph.updateItem 把左边的节点全部往上挪一遍

@syhui
Copy link

syhui commented Jan 31, 2024

antvis/hierarchy#24 修复了下,能review下吗帅哥 @Yanyan-Wang

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

No branches or pull requests

3 participants