From c1716570a8656e7f0dc174c27271248b430c06c9 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Thu, 31 Jan 2019 17:33:10 -0500 Subject: [PATCH] Fixing calculation of axis for HorizontalLayout --- src/rendering/HorizontalLayout/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rendering/HorizontalLayout/index.js b/src/rendering/HorizontalLayout/index.js index 3548f35..d295e2c 100644 --- a/src/rendering/HorizontalLayout/index.js +++ b/src/rendering/HorizontalLayout/index.js @@ -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),