mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Attempts to fix #1297
This commit is contained in:
parent
d3a09f1284
commit
050d72478e
@ -11,6 +11,7 @@ const InpaintingCanvasPlaceholder = () => {
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
window.setTimeout(() => {
|
||||
if (!ref.current || !imageToInpaint) return;
|
||||
|
||||
const width = ref.current.clientWidth;
|
||||
@ -22,6 +23,7 @@ const InpaintingCanvasPlaceholder = () => {
|
||||
);
|
||||
|
||||
dispatch(setStageScale(scale));
|
||||
}, 0);
|
||||
}, [dispatch, imageToInpaint, needsCache]);
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user