react-native/React/Layout
Emil Sjolander ca66383941 Correctly size cross axis when measuring flex basis
Summary:
https://github.com/facebook/css-layout/pull/199

- Nodes were measured with the assumption of being text nodes (height depends on width) when determining flex basis. This is not always true. Even when we are just interested in the main axis (flex basis) we need to correctly constrain the cross axis.
- Some tests were wrong. Measuring texts.big and expecting it to have textSizes.smallHeight which doesn't make a lot of sense.

Reviewed By: vjeux

Differential Revision: D3510163

fbshipit-source-id: ee53b548dd078005fdd153d279e4c7fef3dd02d0
2016-07-08 09:28:35 -07:00
..
Layout.c Correctly size cross axis when measuring flex basis 2016-07-08 09:28:35 -07:00
Layout.h Update css-layout sync scripts 2016-06-15 09:58:52 -07:00
README Correctly size cross axis when measuring flex basis 2016-07-08 09:28:35 -07:00

README

The source of truth for css-layout is: https://github.com/facebook/css-layout

The code here should be kept in sync with GitHub.
HEAD at the time this code was synced: https://github.com/facebook/css-layout/commit/ca34ff44460bce122d02b27c0409a825f8de90b1

There is generated code in:
 - README (this file)
 - fbandroid/java/com/facebook/csslayout
 - fbandroid/javatests/com/facebook/csslayout
 - fbobjc/Libraries/FBReactKit/js/react-native-github/React/Layout

The code was generated by running 'make' in the css-layout folder and running:

  scripts/sync-css-layout.sh <pathToGithubRepo> <pathToFbSourceRepo>