From 9caa2a20439452736e7d6561a30e258f3519aa90 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Tue, 5 Sep 2023 22:59:37 +1200 Subject: [PATCH] fix: Set scaled steps to be at 64 to be in sync with the rest of the canvas --- .../Parameters/Canvas/InfillAndScaling/ParamScaledHeight.tsx | 4 ++-- .../Parameters/Canvas/InfillAndScaling/ParamScaledWidth.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledHeight.tsx b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledHeight.tsx index 26e3ce8eb6..6d0ac52b2f 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledHeight.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledHeight.tsx @@ -41,7 +41,7 @@ const ParamScaledHeight = () => { const newHeight = Math.floor(v); if (aspectRatio) { - newWidth = roundToMultiple(newHeight * aspectRatio, 8); + newWidth = roundToMultiple(newHeight * aspectRatio, 64); } dispatch( @@ -57,7 +57,7 @@ const ParamScaledHeight = () => { const resetHeight = Math.floor(initial); if (aspectRatio) { - resetWidth = roundToMultiple(resetHeight * aspectRatio, 8); + resetWidth = roundToMultiple(resetHeight * aspectRatio, 64); } dispatch( diff --git a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledWidth.tsx b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledWidth.tsx index d869d98c80..71a8615d74 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledWidth.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/InfillAndScaling/ParamScaledWidth.tsx @@ -41,7 +41,7 @@ const ParamScaledWidth = () => { let newHeight = scaledBoundingBoxDimensions.height; if (aspectRatio) { - newHeight = roundToMultiple(newWidth / aspectRatio, 8); + newHeight = roundToMultiple(newWidth / aspectRatio, 64); } dispatch( @@ -57,7 +57,7 @@ const ParamScaledWidth = () => { let resetHeight = scaledBoundingBoxDimensions.height; if (aspectRatio) { - resetHeight = roundToMultiple(resetWidth / aspectRatio, 8); + resetHeight = roundToMultiple(resetWidth / aspectRatio, 64); } dispatch(