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

请问下大佬,如何实现节点size改变的同时完成布局 #1

Open
786329833 opened this issue Feb 9, 2023 · 1 comment
Open

Comments

@786329833
Copy link

786329833 commented Feb 9, 2023

看上去当节点大小变化和布局是同时发生的,是在大小变化前就已经计算出节点内容改变后的size了吗?

@wt911122
Copy link
Owner

不是的,节点大小变化后,从节点向父节点层层计算,布局在每层的计算中起作用,每层的 size 在布局计算完成后得到。

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