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

HorizontalLayoutLayer.getViewSize() 不應該在 adjustMember() 中計算 #54

Open
MontyPan opened this issue Jun 18, 2021 · 0 comments

Comments

@MontyPan
Copy link
Member

目前塞在 adjustMember() 當中計算只是方便而已,(應該)沒有必要性。反之,如果沒有呼叫過 adjustMember() 則無法取得值,這設計本身就有點詭異 🙊

假若 LayerContainer 需要 getViewSize() 來決定自身大小(好讓其 parent 產生 scroll bar),就會造成近似 deadlock 的狀態。

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

1 participant