diff --git a/editor/src/components/canvas/canvas-strategies/strategies/basic-resize-strategy.tsx b/editor/src/components/canvas/canvas-strategies/strategies/basic-resize-strategy.tsx index ba16fa986e4d..60eccfac3a28 100644 --- a/editor/src/components/canvas/canvas-strategies/strategies/basic-resize-strategy.tsx +++ b/editor/src/components/canvas/canvas-strategies/strategies/basic-resize-strategy.tsx @@ -213,11 +213,17 @@ export function basicResizeStrategy( elementParentBounds?.height, ) + const gridsToRerender = selectedElements + .filter((element) => MetadataUtils.isGridCell(canvasState.startingMetadata, element)) + .map(EP.parentPath) + + const elementsToRerender = [...selectedElements, ...gridsToRerender] + return strategyApplicationResult([ adjustCssLengthProperties('always', selectedElement, null, resizeProperties), updateHighlightedViews('mid-interaction', []), setCursorCommand(pickCursorFromEdgePosition(edgePosition)), - setElementsToRerenderCommand(selectedElements), + setElementsToRerenderCommand(elementsToRerender), pushIntendedBoundsAndUpdateGroups( [{ target: selectedElement, frame: resizedBounds }], 'starting-metadata',