From 52c256cbb2c3ff104b4e37efc3a17f81766e733f Mon Sep 17 00:00:00 2001 From: zhouping Date: Tue, 1 Nov 2016 14:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=A1=A8=E5=8D=95=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=90=8Etabpane=E4=B8=AD=E5=B0=B1=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=8B=96=E5=85=A5=E5=9B=BE=E8=A1=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/designer/beans/models/AddingModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designer_form/src/com/fr/design/designer/beans/models/AddingModel.java b/designer_form/src/com/fr/design/designer/beans/models/AddingModel.java index ee02afa655..46798f4d9a 100644 --- a/designer_form/src/com/fr/design/designer/beans/models/AddingModel.java +++ b/designer_form/src/com/fr/design/designer/beans/models/AddingModel.java @@ -124,7 +124,7 @@ public class AddingModel { Rectangle rect = ComponentUtils.getRelativeBounds(container); if(!ComparatorUtils.equals(container.getOuterLayout(), container.getBackupParent())){ - return added = container.getLayoutAdapter().addBean(creator,x,y); + return added = container.getLayoutAdapter().addBean(creator, x + designer.getArea().getHorizontalValue(), y + designer.getArea().getVerticalValue()); } return added = container.getLayoutAdapter().addBean(creator, x + designer.getArea().getHorizontalValue() - rect.x,