Add print yoga node AllEdge value when debug mode (#948)
Summary: add print yoga node AllEdge value when debug mode, the old logic just print four edgeValue including top left bottom and right but when we set the same value to these edge, we use YGAllEdge, this will be more convenient debug code so I open this pull request to add it Pull Request resolved: https://github.com/facebook/yoga/pull/948 Reviewed By: cortinico Differential Revision: D43525328 Pulled By: NickGerleman fbshipit-source-id: 59dde363e6ee8433d10ecf27e440ea7d54000bc1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
92e83193c4
commit
3f9f0f3ceb
@@ -90,7 +90,9 @@ static void appendEdges(
|
||||
const string& key,
|
||||
const YGStyle::Edges& edges) {
|
||||
if (areFourValuesEqual(edges)) {
|
||||
appendNumberIfNotZero(base, key, edges[YGEdgeLeft]);
|
||||
auto edgeValue = YGNode::computeEdgeValueForColumn(
|
||||
edges, YGEdgeLeft, detail::CompactValue::ofZero());
|
||||
appendNumberIfNotZero(base, key, edgeValue);
|
||||
} else {
|
||||
for (int edge = YGEdgeLeft; edge != YGEdgeAll; ++edge) {
|
||||
string str = key + "-" + YGEdgeToString(static_cast<YGEdge>(edge));
|
||||
|
Reference in New Issue
Block a user