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
Showing only changes of commit fca176109d - Show all commits

View File

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

View File

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

View File

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