Browse Source

report-1945 自适应无组件是粘贴失败修复

master
yaoh.wu 8 years ago
parent
commit
03ae87935a
  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;
//选中第一个坐标点坐在的组件
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 {
//绝对布局

Loading…
Cancel
Save