flex overflow

This commit is contained in:
Christopher Chedeau
2014-04-22 09:56:48 -07:00
parent 4dd147e92a
commit f564effb5c
2 changed files with 19 additions and 0 deletions

View File

@@ -209,6 +209,9 @@ var computeLayout = (function() {
if (flexibleChildrenCount) {
var/*float*/ flexibleMainDim = remainingMainDim / flexibleChildrenCount;
if (flexibleMainDim < 0) {
flexibleMainDim = 0;
}
for (var/*int*/ i = 0; i < node.children.length; ++i) {
var/*css_node_t**/ child = node.children[i];
if (getFlex(child)) {