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();
// 隐藏组件图标
designer.resetDraggingPosition();
designer.clearDropTarget();
designer.setPainter(null);
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
*/
public void startDraggingNewWidget(XCreator xCreator, MouseEvent startDragEvent, MouseEvent currentDragEvent) {
if (currentDragEvent == null || this.getDropTarget() != null) {
if (currentDragEvent == null) {
return;
}
@ -1270,7 +1270,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
* @param currentDragEvent
*/
public void startDraggingFormWidget(XCreator xCreator, MouseEvent startDragEvent, MouseEvent currentDragEvent) {
if (currentDragEvent == null || this.getDropTarget() != null) {
if (currentDragEvent == null) {
return;
}
backUpCreator(xCreator);

Loading…
Cancel
Save