absolute, left, marginLeft

This commit is contained in:
Christopher Chedeau
2014-04-21 18:45:57 -07:00
parent 6da9e221d6
commit 78315b5bbf
2 changed files with 13 additions and 1 deletions

View File

@@ -581,6 +581,17 @@ describe('Layout', function() {
);
});
it('should layout node with position: absolute, left and marginLeft', function() {
testLayout(
{style: {}, children: [
{style: {left: 5, marginLeft: 5, position: 'absolute'}}
]},
{width: 0, height: 0, top: 0, left: 0, children: [
{width: 0, height: 0, top: 0, left: 10}
]}
);
});
it('should layout randomly', function() {
function RNG(seed) {
this.state = seed;