use computeEdgeValueForColumn value to obtain allEge value

This commit is contained in:
acton393
2023-02-18 22:04:46 +08:00
parent 0d71ba17ac
commit e71ce2fd62

View File

@@ -90,11 +90,8 @@ static void appendEdges(
const string& key,
const YGStyle::Edges& edges) {
if (areFourValuesEqual(edges)) {
YGEdge edge = YGEdgeLeft;
if (edges[edge].isUndefined()) {
edge = YGEdgeAll;
}
appendNumberIfNotZero(base, key, edges[edge]);
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));