From dc471297225c6397ebca173463be4ff593f280ac Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 16 Feb 2022 16:19:59 -0500 Subject: [PATCH] Run make client-format to lint js code --- client/src/components/Workflow/Editor/Node.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/Workflow/Editor/Node.vue b/client/src/components/Workflow/Editor/Node.vue index 6f7672f2d91..6391975697a 100644 --- a/client/src/components/Workflow/Editor/Node.vue +++ b/client/src/components/Workflow/Editor/Node.vue @@ -164,8 +164,10 @@ export default { const p = document.getElementById("canvas-viewport"); const o = document.getElementById("canvas-container"); if (p && o) { - const left = -o.offsetLeft + (p.offsetWidth - el.offsetWidth) / 2 + this.offsetVaryPosition(OFFSET_RANGE); - const top = -o.offsetTop + (p.offsetHeight - el.offsetHeight) / 2 + this.offsetVaryPosition(OFFSET_RANGE); + const left = + -o.offsetLeft + (p.offsetWidth - el.offsetWidth) / 2 + this.offsetVaryPosition(OFFSET_RANGE); + const top = + -o.offsetTop + (p.offsetHeight - el.offsetHeight) / 2 + this.offsetVaryPosition(OFFSET_RANGE); el.style.top = `${top}px`; el.style.left = `${left}px`; }