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
This commit is contained in:
@@ -90,7 +90,11 @@ static void appendEdges(
|
|||||||
const string& key,
|
const string& key,
|
||||||
const YGStyle::Edges& edges) {
|
const YGStyle::Edges& edges) {
|
||||||
if (areFourValuesEqual(edges)) {
|
if (areFourValuesEqual(edges)) {
|
||||||
appendNumberIfNotZero(base, key, edges[YGEdgeLeft]);
|
YGEdge edge = YGEdgeLeft;
|
||||||
|
if (edges[edge].isUndefined()) {
|
||||||
|
edge = YGEdgeAll;
|
||||||
|
}
|
||||||
|
appendNumberIfNotZero(base, key, edges[edge]);
|
||||||
} else {
|
} else {
|
||||||
for (int edge = YGEdgeLeft; edge != YGEdgeAll; ++edge) {
|
for (int edge = YGEdgeLeft; edge != YGEdgeAll; ++edge) {
|
||||||
string str = key + "-" + YGEdgeToString(static_cast<YGEdge>(edge));
|
string str = key + "-" + YGEdgeToString(static_cast<YGEdge>(edge));
|
||||||
|
Reference in New Issue
Block a user