antvis/G6
The issue has been closed
是否有方法更新combo的大小(不是固定大小fixSize) #3263
yangmiao13160 posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
combo在折叠后,如果移动了combo位置,再展开后,combo的大小会变成默认的大小,而不是通过combo内节点的位置计算的大小,需要用户手动移动combo中的node,宽高才会更新。
What does the proposed API look like?
能够让开发者手动调用一个函数来实现combo的大小更新呢? 目前已试过combo.refresh()是达不到我想要的效果。
用:
combo.update({size:[width,height]})解决了
<!-- generated by antv-issue-helper. DO NOT REMOVE -->