aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/aspectRatioOverlay.js
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-05-27 17:09:15 +0000
committerGitHub <noreply@github.com>2023-05-27 17:09:15 +0000
commit2fc2fbb4ea34899220b141eb67b9515b433feb71 (patch)
tree448e5645d8db694f4677f9e3af3c15e7d9186845 /javascript/aspectRatioOverlay.js
parent5d29672b324c7afd85455a2681de849e3493e29a (diff)
parentdc7a1bbb1c70ba7585ca64c0a96e1bcba4d2302f (diff)
downloadstable-diffusion-webui-gfx803-2fc2fbb4ea34899220b141eb67b9515b433feb71.tar.gz
stable-diffusion-webui-gfx803-2fc2fbb4ea34899220b141eb67b9515b433feb71.tar.bz2
stable-diffusion-webui-gfx803-2fc2fbb4ea34899220b141eb67b9515b433feb71.zip
Merge pull request #10708 from akx/on-ui-update-throttled
Add onAfterUiUpdate callback
Diffstat (limited to 'javascript/aspectRatioOverlay.js')
-rw-r--r--javascript/aspectRatioOverlay.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/aspectRatioOverlay.js b/javascript/aspectRatioOverlay.js
index 1c08a1a9..2cf2d571 100644
--- a/javascript/aspectRatioOverlay.js
+++ b/javascript/aspectRatioOverlay.js
@@ -81,7 +81,7 @@ function dimensionChange(e, is_width, is_height) {
}
-onUiUpdate(function() {
+onAfterUiUpdate(function() {
var arPreviewRect = gradioApp().querySelector('#imageARPreview');
if (arPreviewRect) {
arPreviewRect.style.display = 'none';