Browse Source

无JIRA任务 修复表单调整页面大小后tabpane中就不能拖入图表的问题

master
zhouping 8 years ago
parent
commit
52c256cbb2
  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