Skip to content

Commit

Permalink
return value from getGap method
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetiss committed Dec 7, 2022
1 parent 5e75051 commit df9f016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions javascript/sources/Node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ Value Node::getPadding(int edge) const {
YGNodeStyleGetPadding(m_node, static_cast<YGEdge>(edge)));
}

float Node::getGap(int gutter) {
return YGNodeStyleGetGap(m_node, static_cast<YGGutter>(gutter));
Value Node::getGap(int gutter) {
return Value(static_cast<int>(YGUnitPercent), YGNodeStyleGetGap(m_node, static_cast<YGGutter>(gutter)));
}

bool Node::isReferenceBaseline() {
Expand Down
2 changes: 1 addition & 1 deletion javascript/sources/Node.hh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public: // Style getters

Value getPadding(int edge) const;

float getGap(int gutter);
Value getGap(int gutter);

public: // Tree hierarchy mutators
void insertChild(Node* child, unsigned index);
Expand Down

0 comments on commit df9f016

Please sign in to comment.