"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "01991f72ce1bdce31ff4bd6fc2fa64454b1526ad"
Commit 722801ed authored by pythongosssss's avatar pythongosssss
Browse files

Formatting

parent 3a5bcdf8
...@@ -66,7 +66,6 @@ function dragElement(dragEl, settings) { ...@@ -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) { ...@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment