flex recursively

This commit is contained in:
Christopher Chedeau
2014-04-06 09:43:16 -07:00
parent 93b47ef33a
commit 6859575797
2 changed files with 29 additions and 2 deletions

View File

@@ -223,5 +223,31 @@ describe('Layout', function() {
]
});
});
it('should layout node with flex recursively', function() {
testLayout({
style: {width: 1000, height: 1000},
children: [{
style: {width: 1000, flex: 1},
children: [{
style: {width: 1000, flex: 1},
children: [{
style: {width: 1000, flex: 1}
}]
}]
}]
}, {
width: 1000, height: 1000, top: 0, left: 0,
children: [{
width: 1000, height: 1000, top: 0, left: 0,
children: [{
width: 1000, height: 1000, top: 0, left: 0,
children: [{
width: 1000, height: 1000, top: 0, left: 0
}]
}]
}]
});
});
});