multiple flex and margin

This commit is contained in:
Christopher Chedeau
2014-04-22 09:53:54 -07:00
parent fce826f18b
commit 4dd147e92a
2 changed files with 16 additions and 4 deletions

View File

@@ -632,6 +632,18 @@ describe('Layout', function() {
);
});
it('should layout node with multiple flex and margin', function() {
testLayout(
{style: {width: 700, flexDirection: 'row'}, children: [
{style: {flex: 1}},
{style: {marginLeft: 5, flex: 1}}
]},
{width: 700, height: 0, top: 0, left: 0, children: [
{width: 347.5, height: 0, top: 0, left: 0},
{width: 347.5, height: 0, top: 0, left: 352.5}
]}
)
});
it('should layout randomly', function() {
function RNG(seed) {