-
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
minus total outer flex basis for available width or height, when compute flex basis for children #858
base: main
Are you sure you want to change the base?
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Thanks @shiyizju for your pull request. Could you please add a test case for this change, to prevent a possible regression? Thanks! |
Thanks @woehrl01 for reply. I ran the test cases and it failed with following output: ====STANDARD OUT==== I don't understand the test case very well referenced in the output, could you please help check if I miss something, or maybe my change is not correct? Thanks. |
To be honest, I'm not sure about this specific testcase. But it seems more of a bug in the cloning process. It would be great if you use the existing /gentest/fixtures/YGFlexTest.html + /gentest/gentest.rb to generate a specific test scenario (see README#Testing). Please keep in mind that there a vast amount of code at FB that depends on Yoga and thus it might not be possible to fix all bugs, due to introducing a breaking change. |
I met this problem in iOS environments with YogaKit. Following I upload a demo to reproduce this problem, please take a look. Let me know if there is any problem. Thanks! |
Hi, @davidaurelio , could you please let me know if this issue is being followed up? Thanks. |
@SidharthGuglani could you remove me as a reviewer here? Thanks! |
I put an ImageView and an UILabel in a horizontal flex layout, the label's size is not calculated correctly. The size passed to UILabel's sizeThatFits is not correct. I think it should minus the previous calculated totalOuterFlexBasis.
Thanks.