diff --git a/yoga/node/Node.cpp b/yoga/node/Node.cpp index cf36ab09a4..1bb5e8aad0 100644 --- a/yoga/node/Node.cpp +++ b/yoga/node/Node.cpp @@ -245,8 +245,8 @@ void Node::setLayoutHadOverflow(bool hadOverflow) { layout_.setHadOverflow(hadOverflow); } -void Node::setLayoutDimension(float LengthValue, Dimension dimension) { - layout_.setDimension(dimension, LengthValue); +void Node::setLayoutDimension(float lengthValue, Dimension dimension) { + layout_.setDimension(dimension, lengthValue); } // If both left and right are defined, then use left. Otherwise return +left or diff --git a/yoga/node/Node.h b/yoga/node/Node.h index d596c564cf..a36e3e6882 100644 --- a/yoga/node/Node.h +++ b/yoga/node/Node.h @@ -259,7 +259,7 @@ class YG_EXPORT Node : public ::YGNode { uint32_t computedFlexBasisGeneration); void setLayoutMeasuredDimension(float measuredDimension, Dimension dimension); void setLayoutHadOverflow(bool hadOverflow); - void setLayoutDimension(float LengthValue, Dimension dimension); + void setLayoutDimension(float lengthValue, Dimension dimension); void setLayoutDirection(Direction direction); void setLayoutMargin(float margin, PhysicalEdge edge); void setLayoutBorder(float border, PhysicalEdge edge);