Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Formatting

pythongosssss3a5bcdf8b9a1
diff --git a/web/scripts/ui.js b/web/scripts/ui.js
index 8c7f096d1..194d8e2dd 100644
--- a/web/scripts/ui.js
+++ b/web/scripts/ui.js
@@ -57,11 +57,11 @@ function dragElement(dragEl, settings) {
function ensureInBounds() {
if (dragEl.classList.contains("comfy-menu-manual-pos")) {
- newPosX = Math.min(document.body.clientWidth - dragEl.clientWidth, Math.max(0, dragEl.offsetLeft));
- newPosY = Math.min(document.body.clientHeight - dragEl.clientHeight, Math.max(0, dragEl.offsetTop));
+ newPosX = Math.min(document.body.clientWidth - dragEl.clientWidth, Math.max(0, dragEl.offsetLeft));
+ newPosY = Math.min(document.body.clientHeight - dragEl.clientHeight, Math.max(0, dragEl.offsetTop));
- positionElement();
- }
+ positionElement();
+ }
}
function positionElement() {