Moved trailing padding and border function as a method on YGNode
Summary: Moved trailing padding and border function as a method on YGNode Reviewed By: emilsjolander Differential Revision: D6899571 fbshipit-source-id: 7f686e8771d5a94aae502191516557b20c557d7c
This commit is contained in:
committed by
Facebook Github Bot
parent
dc0609d153
commit
64f6ea37bd
@@ -678,6 +678,12 @@ float YGNode::getLeadingPaddingAndBorder(
|
||||
return getLeadingPadding(axis, widthSize) + getLeadingBorder(axis);
|
||||
}
|
||||
|
||||
float YGNode::getTrailingPaddingAndBorder(
|
||||
const YGFlexDirection axis,
|
||||
const float widthSize) {
|
||||
return getTrailingPadding(axis, widthSize) + getTrailingBorder(axis);
|
||||
}
|
||||
|
||||
bool YGNode::didUseLegacyFlag() {
|
||||
bool didUseLegacyFlag = layout_.didUseLegacyFlag;
|
||||
if (didUseLegacyFlag) {
|
||||
|
Reference in New Issue
Block a user