mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix gallery not resizing correctly on open and close
This commit is contained in:
parent
93de78b6e8
commit
9a6a970771
@ -117,7 +117,8 @@ export default function ImageGallery() {
|
||||
|
||||
const handleOpenGallery = () => {
|
||||
dispatch(setShouldShowGallery(true));
|
||||
shouldPinGallery && dispatch(setDoesCanvasNeedScaling(true));
|
||||
shouldPinGallery &&
|
||||
setTimeout(() => dispatch(setDoesCanvasNeedScaling(true)), 400);
|
||||
};
|
||||
|
||||
const handleCloseGallery = useCallback(() => {
|
||||
@ -128,6 +129,7 @@ export default function ImageGallery() {
|
||||
galleryContainerRef.current ? galleryContainerRef.current.scrollTop : 0
|
||||
)
|
||||
);
|
||||
setTimeout(() => dispatch(setDoesCanvasNeedScaling(true)), 400);
|
||||
}, [dispatch]);
|
||||
|
||||
const handleClickLoadMore = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user