handle negative margin and min padding correctly

This commit is contained in:
Christopher Chedeau
2014-04-22 17:33:08 -07:00
parent 01ccc098c9
commit 3dbd168938
2 changed files with 14 additions and 6 deletions

View File

@@ -733,7 +733,16 @@ describe('Layout', function() {
);
});
it('should handle negative margin and min padding correctly', function() {
testLayout(
{style: {borderRightWidth: 1, flexDirection: 'row'}, children: [
{style: {marginRight: -8}}
]},
{width: 1, height: 0, top: 0, left: 0, children: [
{width: 0, height: 0, top: 0, left: 0}
]}
)
});