fix positive margin top inside of justify content center container

This commit is contained in:
Christopher Chedeau
2014-12-11 14:31:17 +00:00
parent 570f7bf98a
commit 79286e6263
2 changed files with 25 additions and 13 deletions

View File

@@ -1055,17 +1055,6 @@ 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}
]}
);
});
it('should layout border bottom inside of justify content space between container', function() {
testLayout(
{style: {justifyContent: 'space-between'}, children: [
@@ -1077,6 +1066,29 @@ describe('Layout', function() {
);
});
it('should layout negative margin top inside of justify content center container', 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}
]}
);
});
it('should layout positive margin top inside of justify content center container', function() {
testLayout(
{style: {justifyContent: 'center'}, children: [
{style: {marginTop: 20}}
]},
{width: 0, height: 20, top: 0, left: 0, children: [
{width: 0, height: 0, top: 20, left: 0}
]}
);
});
xit('should layout flex-wrap', function() {
testLayout(
{style: {flexWrap: 'wrap', flexDirection: 'row', width: 100}, children: [