mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 21:37:00 +08:00
Fix breaking old menu position
This commit is contained in:
parent
120c99eccc
commit
46c8fd5178
@ -107,6 +107,8 @@ function dragElement(dragEl, settings) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function positionElement() {
|
function positionElement() {
|
||||||
|
if(dragEl.style.display === "none") return;
|
||||||
|
|
||||||
const halfWidth = document.body.clientWidth / 2;
|
const halfWidth = document.body.clientWidth / 2;
|
||||||
const anchorRight = newPosX + dragEl.clientWidth / 2 > halfWidth;
|
const anchorRight = newPosX + dragEl.clientWidth / 2 > halfWidth;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user