From 5cbf14f0db48a4489c986763c094738dc5a58a15 Mon Sep 17 00:00:00 2001 From: Balint Gabor <127662+gbalint@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:20:58 +0200 Subject: [PATCH] Stupid mistake --- .../canvas/canvas-strategies/strategies/grid-helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/src/components/canvas/canvas-strategies/strategies/grid-helpers.ts b/editor/src/components/canvas/canvas-strategies/strategies/grid-helpers.ts index dfc491fea3f5..bf51b4149b2c 100644 --- a/editor/src/components/canvas/canvas-strategies/strategies/grid-helpers.ts +++ b/editor/src/components/canvas/canvas-strategies/strategies/grid-helpers.ts @@ -326,9 +326,9 @@ function getGridChildCellCoordBoundsFromProps( return propValue.numericalPosition ?? innerFallback } const column = getGridProperty('gridColumnStart', fallback.column) - const height = getGridProperty('gridColumnEnd', fallback.column + (fallback.height ?? 1)) - column + const height = getGridProperty('gridColumnEnd', fallback.column + (fallback.width ?? 1)) - column const row = getGridProperty('gridRowStart', fallback.row) - const width = getGridProperty('gridRowEnd', fallback.row + (fallback.width ?? 1)) - row + const width = getGridProperty('gridRowEnd', fallback.row + (fallback.height ?? 1)) - row return { row,