Expose the resolved direction in the node's layout
This commit is contained in:
@@ -111,6 +111,7 @@ var computeLayout = (function() {
|
||||
|
||||
delete layout.right;
|
||||
delete layout.bottom;
|
||||
delete layout.direction;
|
||||
|
||||
return layout;
|
||||
}
|
||||
@@ -407,6 +408,9 @@ var computeLayout = (function() {
|
||||
setDimensionFromStyle(node, mainAxis);
|
||||
setDimensionFromStyle(node, crossAxis);
|
||||
|
||||
// Set the resolved resolution in the node's layout
|
||||
node.layout.direction = direction;
|
||||
|
||||
// The position is set by the parent, but we need to complete it with a
|
||||
// delta composed of the margin and left/top/right/bottom
|
||||
node.layout[leading[mainAxis]] += getLeadingMargin(node, mainAxis) +
|
||||
|
Reference in New Issue
Block a user