mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): use optimal size when using control image dims
This commit is contained in:
parent
fe459295ea
commit
d14b315bc6
@ -100,8 +100,8 @@ const ControlAdapterImagePreview = ({ isSmall, id }: Props) => {
|
||||
controlImage.width / controlImage.height,
|
||||
optimalDimension * optimalDimension
|
||||
);
|
||||
dispatch(widthChanged({ width: controlImage.width, updateAspectRatio: true }));
|
||||
dispatch(heightChanged({ height: controlImage.height, updateAspectRatio: true }));
|
||||
dispatch(widthChanged({ width, updateAspectRatio: true }));
|
||||
dispatch(heightChanged({ height, updateAspectRatio: true }));
|
||||
}
|
||||
}, [controlImage, activeTabName, dispatch, optimalDimension]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user