fix a regression introduced by fixYogaFlexBasisFitContentInMainAxis feature flag (#1962)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1962
X-link: https://github.com/facebook/react-native/pull/56839
changelog: [internal]
Limit the FixFlexBasisFitContent height optimization to non-measure container children inside scroll subtrees. This keeps Marketplace Home wrappers outside the ScrollView viewport-bounded while preserving the scroll remeasurement optimization.
This regression was discovered during a recent QE where I tried to run enable this optimisation.
Reviewed By: christophpurrer
Differential Revision: D105167981
fbshipit-source-id: bc988005507ebc1fc1688a8dc77c233e12ac2834
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Yoga

Yoga is an embeddable and performant flexbox layout engine with bindings for multiple languages.
Building
Yoga’s main implementation targets C++ 20 with accompanying build logic in CMake. A wrapper is provided to build the main library and run unit tests.
While not required, this script will use ninja if it is installed for faster builds.
Yoga is additionally part of the vcpkg collection of ports maintained by Microsoft and community contributors. If the version is out of date, please create an issue or pull request on the vcpkg repository.
Adding Tests
Many of Yoga’s tests are automatically generated, using HTML fixtures describing node structure. These are rendered in Chrome to generate an expected layout result for the tree. New fixtures can be added to
gentest/fixtures.To generate new tests from added fixtures:
yarn installto install dependencies for the test generator.yarn gentestin theyogadirectory.Debugging
Yoga provides a VSCode “launch.json” configuration which allows debugging unit tests. Simply add your breakpoints, and run “Debug C++ Unit tests (lldb)” (or “Debug C++ Unit tests (vsdbg)” on Windows).