Moved margin axis function as a method in YGNode

Summary: Moved margin axis function as a method in YGNode

Reviewed By: emilsjolander

Differential Revision: D6900003

fbshipit-source-id: a42da3bcd3126bf8c432c6740987b5ec0b572172
This commit is contained in:
Pritesh Nandgaonkar
2018-02-06 08:39:53 -08:00
committed by Facebook Github Bot
parent 64f6ea37bd
commit 61afbd43c9
3 changed files with 62 additions and 52 deletions

View File

@@ -97,6 +97,7 @@ struct YGNode {
float getTrailingPaddingAndBorder(
const YGFlexDirection axis,
const float widthSize);
float getMarginForAxis(const YGFlexDirection axis, const float widthSize);
// Setters
void setContext(void* context);