absolute child and parent border main axis. s/getPadding/getPaddingAndBorder/

This commit is contained in:
Christopher Chedeau
2014-04-22 11:40:31 -07:00
parent 3d280fe3f1
commit b6f3bbc3b8
2 changed files with 36 additions and 17 deletions

View File

@@ -689,6 +689,17 @@ describe('Layout', function() {
)
});
it('should layout node with borderWidth and position: absolute, top', function() {
testLayout(
{style: {borderTopWidth: 1}, children: [
{style: {top: -1, position: 'absolute'}}
]},
{width: 0, height: 1, top: 0, left: 0, children: [
{width: 0, height: 0, top: 0, left: 0}
]}
)
});
it('should layout randomly', function() {