alignItem: stretch

This commit is contained in:
Christopher Chedeau
2014-04-09 19:15:46 -07:00
parent e2e49caf86
commit 0dcb7080ff
2 changed files with 33 additions and 4 deletions

View File

@@ -432,5 +432,19 @@ describe('Layout', function() {
});
});
it('should layout node with alignItem: stretch', function() {
testLayout({
style: {width: 1000, height: 1000, alignItems: 'stretch'},
children: [
{style: {height: 100}}
]
}, {
width: 1000, height: 1000, top: 0, left: 0,
children: [
{width: 1000, height: 100, top: 0, left: 0}
]
});
});
});