diff --git a/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx b/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx index efe09f0b5d..fec9f5411c 100644 --- a/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx +++ b/frontend/src/features/options/AdvancedOptions/Inpainting/BoundingBoxSettings.tsx @@ -145,14 +145,16 @@ const BoundingBoxSettings = () => { width={'5rem'} /> } styleClass="inpainting-bounding-box-reset-icon-btn" - isDisabled={canvasDimensions.width === boundingBoxDimensions.width} + isDisabled={ + shouldLockBoundingBox || + canvasDimensions.width === boundingBoxDimensions.width + } />
@@ -177,7 +179,6 @@ const BoundingBoxSettings = () => { width={'5rem'} /> { icon={} styleClass="inpainting-bounding-box-reset-icon-btn" isDisabled={ + shouldLockBoundingBox || canvasDimensions.height === boundingBoxDimensions.height } />