From aa7955e3817c4a50c5eac859f44c8ddccba6a248 Mon Sep 17 00:00:00 2001 From: Balazs Bajorics <2226774+balazsbajorics@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:46:17 +0200 Subject: [PATCH] fixing setPaddingStrategy elementsToRerender (#6427) This PR sets the elementsToRerender value in the setPaddingStrategy --- .../strategies/set-padding-strategy.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/editor/src/components/canvas/canvas-strategies/strategies/set-padding-strategy.tsx b/editor/src/components/canvas/canvas-strategies/strategies/set-padding-strategy.tsx index 01f65b4b22c2..bb69d4fc2a7c 100644 --- a/editor/src/components/canvas/canvas-strategies/strategies/set-padding-strategy.tsx +++ b/editor/src/components/canvas/canvas-strategies/strategies/set-padding-strategy.tsx @@ -270,10 +270,7 @@ export const setPaddingStrategy: CanvasStrategyFactory = (canvasState, interacti })), ), ], - // FIXME: This was added as a default value in https://github.com/concrete-utopia/utopia/pull/6408 - // This was to maintain the existing behaviour, but it should be replaced with a more specific value - // appropriate to this particular case. - 'rerender-all-elements', + selectedElements, ) } @@ -301,10 +298,7 @@ export const setPaddingStrategy: CanvasStrategyFactory = (canvasState, interacti })), ), ], - // FIXME: This was added as a default value in https://github.com/concrete-utopia/utopia/pull/6408 - // This was to maintain the existing behaviour, but it should be replaced with a more specific value - // appropriate to this particular case. - 'rerender-all-elements', + selectedElements, ) } @@ -334,10 +328,7 @@ export const setPaddingStrategy: CanvasStrategyFactory = (canvasState, interacti })), ), ], - // FIXME: This was added as a default value in https://github.com/concrete-utopia/utopia/pull/6408 - // This was to maintain the existing behaviour, but it should be replaced with a more specific value - // appropriate to this particular case. - 'rerender-all-elements', + selectedElements, ) }, }