Browse Source

REPORT-66947

new-design
方磊 3 years ago
parent
commit
eb9039dd3b
  1. 1
      designer-form/src/main/java/com/fr/design/mainframe/FormCreatorDropTarget.java
  2. 4
      designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java

1
designer-form/src/main/java/com/fr/design/mainframe/FormCreatorDropTarget.java

@ -87,7 +87,6 @@ public class FormCreatorDropTarget extends DropTarget {
cancelPromptWidgetForbidEnter(); cancelPromptWidgetForbidEnter();
// 隐藏组件图标 // 隐藏组件图标
designer.resetDraggingPosition(); designer.resetDraggingPosition();
designer.clearDropTarget();
designer.setPainter(null); designer.setPainter(null);
designer.repaint(); designer.repaint();
} }

4
designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java

@ -1248,7 +1248,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
* @param currentDragEvent * @param currentDragEvent
*/ */
public void startDraggingNewWidget(XCreator xCreator, MouseEvent startDragEvent, MouseEvent currentDragEvent) { public void startDraggingNewWidget(XCreator xCreator, MouseEvent startDragEvent, MouseEvent currentDragEvent) {
if (currentDragEvent == null || this.getDropTarget() != null) { if (currentDragEvent == null) {
return; return;
} }
@ -1270,7 +1270,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
* @param currentDragEvent * @param currentDragEvent
*/ */
public void startDraggingFormWidget(XCreator xCreator, MouseEvent startDragEvent, MouseEvent currentDragEvent) { public void startDraggingFormWidget(XCreator xCreator, MouseEvent startDragEvent, MouseEvent currentDragEvent) {
if (currentDragEvent == null || this.getDropTarget() != null) { if (currentDragEvent == null) {
return; return;
} }
backUpCreator(xCreator); backUpCreator(xCreator);

Loading…
Cancel
Save