mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 17:27:54 +08:00
Summary: I made some changes to css-layout that changes how layout is computed for absolutely positioned nodes inside absolutely positioned parents that have borders/padding. There were also some other changes made to css-layout that haven't been merged in yet. @public Test Plan: Made a node as described above, saw that the layout is computed differently than in the browser, updated Layout, saw that the Layout is not computed correctly.
16 lines
564 B
Bash
Executable File
16 lines
564 B
Bash
Executable File
LAYOUT_C=`curl https://raw.githubusercontent.com/facebook/css-layout/master/src/Layout.c`
|
|
LAYOUT_H=`curl https://raw.githubusercontent.com/facebook/css-layout/master/src/Layout.h`
|
|
|
|
REPLACE_STRING="*
|
|
* WARNING: You should not modify this file directly. Instead:
|
|
* 1) Go to https://github.com/facebook/css-layout
|
|
* 2) Make a pull request and get it merged
|
|
* 3) Run import.sh to copy Layout.* to react-native-github
|
|
*/"
|
|
|
|
LAYOUT_C=${LAYOUT_C/\*\//$REPLACE_STRING}
|
|
LAYOUT_H=${LAYOUT_H/\*\//$REPLACE_STRING}
|
|
|
|
echo "$LAYOUT_C" > Layout.c
|
|
echo "$LAYOUT_H" > Layout.h
|