From fdbc0b48878fa5f9b290f8c2a8f73e3fab460bbc Mon Sep 17 00:00:00 2001 From: yangl Date: Fri, 5 Aug 2022 17:53:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=A0=8F=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=94=BB=E5=B8=83=E5=A4=A7=E5=B0=8Fbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/coe.team.pal.designer.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.team.pal.designer.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.team.pal.designer.js index 83d71174..de47aa6d 100644 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.team.pal.designer.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/js/coe.team.pal.designer.js @@ -343,6 +343,11 @@ $(function() { movingShapes = selected.concat(outlinkers); } if(movingShapes.length > 0 && contentWidth <= minPageWidth - 180*2) { + // 右移或左移 距左部120 默认padding 60 + Designer.op.moveShape(movingShapes, { + x : 180 - pos.left, + y : 0 + }); // 下移或上移 距顶部120 默认padding 60 Designer.op.moveShape(movingShapes, { x : 0, @@ -352,8 +357,9 @@ $(function() { width: Math.trunc(minPageWidth), height: Math.trunc(contentHeight + 360) }); - } else if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) { - // 右移或左移 距左部60 默认padding 60 + } + if(movingShapes.length > 0 && contentWidth > minPageWidth - 180*2) { + // 右移或左移 距左部120 默认padding 60 Designer.op.moveShape(movingShapes, { x : 180 - pos.left, y : 0