mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-18 18:33:30 +00:00
Formatting
This commit is contained in:
parent
3a5bcdf8b9
commit
722801ed2d
@ -66,7 +66,6 @@ function dragElement(dragEl, settings) {
|
||||
|
||||
function positionElement() {
|
||||
const halfWidth = document.body.clientWidth / 2;
|
||||
|
||||
const anchorRight = newPosX + dragEl.clientWidth / 2 > halfWidth;
|
||||
|
||||
// set the element's new position:
|
||||
@ -77,6 +76,7 @@ function dragElement(dragEl, settings) {
|
||||
dragEl.style.left = newPosX + "px";
|
||||
dragEl.style.right = "unset";
|
||||
}
|
||||
|
||||
dragEl.style.top = newPosY + "px";
|
||||
dragEl.style.bottom = "unset";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user