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

fix: relayout boundary of flex item #1023

Merged
merged 1 commit into from
Dec 28, 2021
Merged

Conversation

temper357
Copy link
Contributor

@temper357 temper357 commented Dec 28, 2021

PR 中删除的代码会使 flex item 的 relayout boundary 失效,即使 flex item 上有设置宽高,还是会继续向上冒脏标识。
这段代码的原始含义是,flex item 的 size 变化时可能影响到 sibling 的 size,如果 flex item 自身是 relayout boundary 那么脏标识不会冒泡到 parent,重构过后的代码中这个逻辑已经在 css 属性的 setter 中处理过了,因此这段逻辑不是必需的。

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

Successfully merging this pull request may close these issues.

Flex布局,复杂的ui场景下排版速度无法收敛。
3 participants