X6
X6 copied to clipboard
在render:done中使用graph.centerContent,第一次不会使内容居中,第二次才会
Describe the bug
在render:done中使用graph.centerContent,第一次不会使内容居中,第二次才会
Your Example Website or App
无
Steps to Reproduce the Bug or Issue
无
Expected behavior
无
Screenshots or Videos
No response
Platform
- Browser: [e.g. Chrome, Safari, Firefox]
Additional context
无
有具体的demo吗?
有具体的demo吗?
使用接口返回的数据在实例化graph后直接使用centerContent和在render:done中使用都没法使内容居中
@yangxianxian 能否提供一个可以复现的 codesanbox 链接呢?
问题已找到,如果在画布实例外包裹了右键菜单Dropdown并且添加了visible,且visible由usestate控制的情况下就会发生第一次不能居中的情况
This thread has been automatically locked because it has not had recent activity.
Please open a new issue for related bugs and link to relevant comments in this thread.