it should apply padding on the node itself

This commit is contained in:
Christopher Chedeau
2014-04-15 18:24:37 -07:00
parent 9db106a71c
commit 36d6108e8d
2 changed files with 12 additions and 3 deletions

View File

@@ -472,6 +472,13 @@ describe('Layout', function() {
);
});
it('should layout node with padding', function() {
testLayout(
{style: {padding: 5}},
{width: 10, height: 10, top: 0, left: 0}
);
});
it('should layout randomly', function() {
function RNG(seed) {
this.state = seed;