Add print yoga node AllEdge value when debug mode #948
@@ -90,7 +90,8 @@ 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
This could also be the combination of YGEdgeVertical or YGEdgeHorizontal. I think the robust way to do this would be to call one of the node edge resolution functions (
computeEdgeValueForColumn()
orcomputeEdgeValueForRow()
)