actually make work left and right
This commit is contained in:
@@ -491,6 +491,7 @@ var computeLayout = (function() {
|
|||||||
if (leadingPos && trailingPos) {
|
if (leadingPos && trailingPos) {
|
||||||
child.layout[dim[crossAxis]] =
|
child.layout[dim[crossAxis]] =
|
||||||
node.layout[dim[crossAxis]] -
|
node.layout[dim[crossAxis]] -
|
||||||
|
child.layout[pos[crossAxis]] -
|
||||||
getMargin(child, trailing[crossAxis]) -
|
getMargin(child, trailing[crossAxis]) -
|
||||||
getPosition(child, trailing[crossAxis]);
|
getPosition(child, trailing[crossAxis]);
|
||||||
}
|
}
|
||||||
|
@@ -933,8 +933,8 @@ describe('Layout', function() {
|
|||||||
{style: {width: 100}, children: [
|
{style: {width: 100}, children: [
|
||||||
{style: {right: 5, left: 5, position: 'absolute'}}
|
{style: {right: 5, left: 5, position: 'absolute'}}
|
||||||
]},
|
]},
|
||||||
{width: 0, height: 0, top: 0, left: 0, children: [
|
{width: 100, height: 0, top: 0, left: 0, children: [
|
||||||
{width: 5, height: 0, top: 0, left: -20}
|
{width: 90, height: 0, top: 0, left: 5}
|
||||||
]}
|
]}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user