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() {
|
function positionElement() {
|
||||||
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;
|
||||||
|
|
||||||
// set the element's new position:
|
// set the element's new position:
|
||||||
@ -77,8 +76,9 @@ function dragElement(dragEl, settings) {
|
|||||||
dragEl.style.left = newPosX + "px";
|
dragEl.style.left = newPosX + "px";
|
||||||
dragEl.style.right = "unset";
|
dragEl.style.right = "unset";
|
||||||
}
|
}
|
||||||
dragEl.style.top = newPosY + "px";
|
|
||||||
dragEl.style.bottom = "unset";
|
dragEl.style.top = newPosY + "px";
|
||||||
|
dragEl.style.bottom = "unset";
|
||||||
|
|
||||||
if (savePos) {
|
if (savePos) {
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
|
Loading…
Reference in New Issue
Block a user