fix bug with negative margin inside of a justifyContent: center container

This commit is contained in:
Christopher Chedeau
2014-12-11 14:12:12 +00:00
parent ef73ebd935
commit 5a3303ac5e
2 changed files with 70 additions and 59 deletions

View File

@@ -1055,6 +1055,17 @@ describe('Layout', function() {
);
});
it('should layout negative margin top and center justify content', function() {
testLayout(
{style: {justifyContent: 'center'}, children: [
{style: {marginTop: -6}}
]},
{width: 0, height: 0, top: 0, left: 0, children: [
{width: 0, height: 0, top: -3, left: 0}
]}
);
});
xit('should layout flex-wrap', function() {
testLayout(
{style: {flexWrap: 'wrap', flexDirection: 'row', width: 100}, children: [