Browse Source

Merge pull request #808 in BA/design from ~YAOH.WU/design_0407:release to release

* commit '03ae87935a5ce59af7fc70aee38b21d88821ed91':
  report-1945 自适应无组件是粘贴失败修复
master
superman 8 years ago
parent
commit
ff07cc70aa
  1. 10
      designer_form/src/com/fr/design/designer/beans/models/SelectionModel.java

10
designer_form/src/com/fr/design/designer/beans/models/SelectionModel.java

@ -149,7 +149,15 @@ public class SelectionModel {
int leftUpY = designer.getRootComponent().toData().getMargin().getTop() + 1; int leftUpY = designer.getRootComponent().toData().getMargin().getTop() + 1;
//选中第一个坐标点坐在的组件 //选中第一个坐标点坐在的组件
selection.setSelectedCreator((XCreator) designer.getRootComponent().getComponentAt(leftUpX, leftUpY)); selection.setSelectedCreator((XCreator) designer.getRootComponent().getComponentAt(leftUpX, leftUpY));
pasteFromClipBoard(); if (hasSelectedPasteSource()) {
selectedPaste();
} else {
FormSelectionUtils.paste2Container(designer, designer.getRootComponent(),
clipboard,
DELTA_X_Y,
DELTA_X_Y);
}
} }
} else { } else {
//绝对布局 //绝对布局

Loading…
Cancel
Save