Browse Source

Merge pull request #440 in BA/design from ~ZHOUPING/design:master to master

* commit '52c256cbb2c3ff104b4e37efc3a17f81766e733f':
  无JIRA任务 修复表单调整页面大小后tabpane中就不能拖入图表的问题
master
superman 8 years ago
parent
commit
3a04eac77b
  1. 2
      designer_form/src/com/fr/design/designer/beans/models/AddingModel.java

2
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,

Loading…
Cancel
Save