overlapping left and right + workaround chrome bug

This commit is contained in:
Christopher Chedeau
2014-06-12 11:27:49 -07:00
parent 694e181b8e
commit 842d654b0f
3 changed files with 32 additions and 10 deletions

View File

@@ -690,7 +690,7 @@ describe('Layout', function() {
)
});
it('should layout node with borderWidth and position: absolute, top', function() {
it('should layout node with borderWidth and position: absolute, top, main axis', function() {
testLayout(
{style: {borderTopWidth: 1}, children: [
{style: {top: -1, position: 'absolute'}}
@@ -701,7 +701,7 @@ describe('Layout', function() {
)
});
it('should layout node with borderWidth and position: absolute, top. cross axis', function() {
it('should layout node with borderWidth and position: absolute, top, cross axis', function() {
testLayout(
{style: {borderWidth: 1}, children: [
{style: {left: 5, position: 'absolute'}}
@@ -950,6 +950,17 @@ describe('Layout', function() {
);
});
it('should layout with position absolute left and negative right', function() {
testLayout(
{style: {}, children: [
{style: {left: 5, right: -1, position: 'absolute'}}
]},
{width: 0, height: 0, top: 0, left: 0, children: [
{width: 0, height: 0, top: 0, left: 5}
]}
);
});
xit('should layout text with alignItems: stretch', function() {
testLayout(
{style: {width: 80, padding: 7, alignItems: 'stretch', measure: text('loooooooooong with space')}},