Fixing calculation of axis for HorizontalLayout

This commit is contained in:
Jeff Avallone 2019-01-31 17:33:10 -05:00
parent 3920c716e4
commit c1716570a8

View File

@ -78,6 +78,8 @@ const layout = data => {
};
const offsetBoxes = generateOffsetBoxes(childBoxes, data.box.axisY, spacing);
data.box.axisX1 = offsetBoxes[0].axisX1;
data.box.axisX2 = offsetBoxes[offsetBoxes.length - 1].axisX2;
data.props = {
...data.props,
transforms: calculateChildTransforms(offsetBoxes),