-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 missing invalidation if owner has undefined dimensions #1017
base: main
Are you sure you want to change the base?
Conversation
Would similar issue also happen when owner size changes from one defined size to another? |
It should also work in that case. As the missing parent size leads to not taking min/max values into account. I'll have a second look later, maybe we have a different fix, without the new variables here, too. Until then I'll keep this PR as draft. The alternative as described in the issue is still the best approach for now. |
Hey @woehrl01, I think we want to import this, and think it might supersede the current code for We're more generally looking to start migrating the React Native ecosystem off of legacy incorrect behaviors, but I think we should put this behind a flag. That way we can experiment, to know if it will be a breaking change we should leave behind a gate, or if its relatively safe to enable out of the box. Size impact per-node can be mitigated by embedding into the I can pick this up, but wanted to give a heads up first 🙂. |
@NickGerleman it's awesome to see the latest effort you put into the library. I fully agree on your approach. Feel free to pick this up! |
@NickGerleman I just had a closer look into the current layout of the |
@woehrl01 does this bug also happen if |
@jacobp100 Are you talking about |
No - I was just wondering. It just seemed strange to me that only width/height would trigger this, but not other layout-affecting properties |
Fixes #1003 by adding additional values, which keep track if the owner size has been undefined before. Being undefined lead to different calculations for min/max constraints thus, in that specific case leading to the wrong behavior.
Please also see my concerns posted in the issue.