Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

【V5】设置 combo 默认收起报错且未能正常布局 #6112

Open
MusicTen opened this issue Aug 1, 2024 · 3 comments
Open

【V5】设置 combo 默认收起报错且未能正常布局 #6112

MusicTen opened this issue Aug 1, 2024 · 3 comments
Labels

Comments

@MusicTen
Copy link
Contributor

MusicTen commented Aug 1, 2024

Describe the bug / 问题描述

image

Reproduction link / 重现链接

https://stackblitz.com/edit/react-vqdqdc?file=index.js

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

  1. data 设置 combo collapsed: true
  2. 期望首次加载收起 combo
  3. 加载报错且布局异常

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome, Edge

Additional context / 补充说明

尝试在布局结束后手动触发 combo 收起 graph.collapseElement(combo.id);,未能成功

@Aarebecca
Copy link
Contributor

Aarebecca commented Aug 1, 2024

目前看来是 combo-combine 布局导致的,先避免在 5.0 中使用该布局,后续会通过新的 combo-combined 布局

@MusicTen
Copy link
Contributor Author

MusicTen commented Aug 2, 2024

目前看来是 combo-combine 布局导致的,先避免在 5.0 中使用该布局,后续会通过新的 combo-combined 布局

换成 darge/grid 布局,data 中设置收起 combo,combo 会重叠在一起,看之前回复说 combo 不参与布局。尝试我在布局完成后,遍历 combo 手动触发收起 graph.collapseElement(combo.id),结果只收起了一个 combo,这个有办法解决吗

@Aarebecca
Copy link
Contributor

@MusicTen 看起来像是有点问题,我这边修一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants