use computeEdgeValueForColumn value to obtain allEge value
This commit is contained in:
@@ -90,11 +90,8 @@ static void appendEdges(
|
|||||||
const string& key,
|
const string& key,
|
||||||
const YGStyle::Edges& edges) {
|
const YGStyle::Edges& edges) {
|
||||||
if (areFourValuesEqual(edges)) {
|
if (areFourValuesEqual(edges)) {
|
||||||
YGEdge edge = YGEdgeLeft;
|
auto edgeValue = YGNode::computeEdgeValueForColumn(edges, YGEdgeLeft, detail::CompactValue::ofZero());
|
||||||
if (edges[edge].isUndefined()) {
|
appendNumberIfNotZero(base, key, edgeValue);
|
||||||
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