If the measure function is defined: only return from execution of lay… #84

Merged
lukasredev merged 1 commits from master into master 2015-05-14 08:48:04 -07:00
3 changed files with 9 additions and 3 deletions

View File

@@ -431,7 +431,9 @@ static void layoutNodeImpl(css_node_t *node, float parentMaxWidth) {
getPaddingAndBorderAxis(node, CSS_FLEX_DIRECTION_COLUMN);
}
}
return;
if (node->children_count == 0) {
return;
}
}
int i;

View File

@@ -315,7 +315,9 @@ var computeLayout = (function() {
getPaddingAndBorderAxis(node, CSS_FLEX_DIRECTION_COLUMN);
}
}
return;
if (node.children.length === 0) {
return;
}
}
var/*int*/ i;

View File

@@ -369,7 +369,9 @@ public class LayoutEngine {
getPaddingAndBorderAxis(node, CSSFlexDirection.COLUMN);
}
}
return;
if (node.getChildCount() == 0) {
return;
}
}
int i;