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

是否有方法更新combo的大小(不是固定大小fixSize) #3263

Closed
1 task
yangmiao13160 opened this issue Oct 20, 2021 · 1 comment
Closed
1 task

Comments

@yangmiao13160
Copy link

yangmiao13160 commented Oct 20, 2021

  • 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]})解决了
@user-lihai
Copy link

我也遇见过这个问题,收起的时候可以控制大小,但是展开的时候有时候不会包裹住内部的节点,不知道楼主有没有遇见过这个问题

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

2 participants