Compute edge values similar to how Spacing.java does it

Summary: When moving over java code to JNI we must make sure things like spacing behave the same. This introduces the same concepts to the C code.

Reviewed By: lexs

Differential Revision: D3728742

fbshipit-source-id: aa19400880afa49664f7bde72b1df45314e699bb
This commit is contained in:
Emil Sjolander
2016-08-17 10:36:40 -07:00
committed by Facebook Github Bot 5
parent dab03cb800
commit 9d34b4e110
2 changed files with 129 additions and 113 deletions

View File

@@ -60,10 +60,10 @@ typedef struct CSSStyle {
float flexGrow;
float flexShrink;
float flexBasis;
float margin[6];
float position[6];
float padding[6];
float border[6];
float margin[CSSEdgeCount];
float position[CSSEdgeCount];
float padding[CSSEdgeCount];
float border[CSSEdgeCount];
float dimensions[2];
float minDimensions[2];
float maxDimensions[2];