overlapping left and right + workaround chrome bug
This commit is contained in:
@@ -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')}},
|
||||
|
Reference in New Issue
Block a user