Browse Source

REPORT-66947 拖拽拖出可拖拽区域的时候,没有及时清理内存里残留的上次dropTarget对象,需要清理一下

final/11.0
方磊 3 years ago
parent
commit
1f7420988a
  1. 1
      designer-form/src/main/java/com/fr/design/mainframe/FormCreatorDropTarget.java

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

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

Loading…
Cancel
Save