react-native/ReactCommon
Pritesh Nandgaonkar 5be1726d28 Solve width bug when the size is less than min
Summary:
This diff updates the logic which reassigns `remainingFreeSpace` when the node's calculated dimension falls below min width of the node.

So we will have to update the `remainingFreeSpace` as there is more available space since the calculated nodes width is less than the min width.

I have also added comments at relevant places in the code so that it is clearer.

This diff solves the issue raised in litho support grp. The details can be found here T32199608. This diff also makes sure that it doesn't break fblite, as the earlier version broke it, details of which can be found here T32881750.

Reviewed By: IanChilds

Differential Revision: D9359026

fbshipit-source-id: 4168e385e962c168a9de9370220c75f14a6726a7
2018-08-20 06:20:52 -07:00
..
cxxreact Add REGISTER_JS_SEGMENT perf markers 2018-08-10 09:37:42 -07:00
fabric Implement the update of props in the MountingManager layer 2018-08-16 16:52:42 -07:00
jschelpers Bump Android NDK to r17b (#20357) 2018-07-30 14:02:11 -07:00
jsinspector Bump Android NDK to r17b (#20357) 2018-07-30 14:02:11 -07:00
microprofiler Migrate Android sources to MIT license header 2018-05-31 15:37:30 -07:00
privatedata Bump Android NDK to r17b (#20357) 2018-07-30 14:02:11 -07:00
yoga Solve width bug when the size is less than min 2018-08-20 06:20:52 -07:00