right and negative margin

This commit is contained in:
Christopher Chedeau
2014-06-11 22:07:36 -07:00
parent 7506908814
commit 7c157cbb50
2 changed files with 13 additions and 1 deletions

View File

@@ -484,7 +484,8 @@ var computeLayout = (function() {
if (!leadingPos && trailingPos) {
child.layout[pos[crossAxis]] =
node.layout[dim[crossAxis]] -
getDimWithMargin(child, crossAxis) -
child.layout[dim[crossAxis]] -
getMargin(child, trailing[crossAxis]) -
getPosition(child, trailing[crossAxis]);
}
} else {