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:
committed by
Facebook Github Bot
parent
64f6ea37bd
commit
61afbd43c9
@@ -167,6 +167,12 @@ float YGNode::getTrailingMargin(
|
||||
widthSize);
|
||||
}
|
||||
|
||||
float YGNode::getMarginForAxis(
|
||||
const YGFlexDirection axis,
|
||||
const float widthSize) {
|
||||
return getLeadingMargin(axis, widthSize) + getTrailingMargin(axis, widthSize);
|
||||
}
|
||||
|
||||
// Setters
|
||||
|
||||
void YGNode::setContext(void* context) {
|
||||
|
Reference in New Issue
Block a user