From 0757ed358e0c727f2d2f09f5f44ab2f304790737 Mon Sep 17 00:00:00 2001 From: kerry Date: Thu, 23 Sep 2021 17:28:17 +0800 Subject: [PATCH] REPORT-59908 && REPORT-59906 && REPORT-59907 --- .../java/com/fr/design/designer/creator/XWFitLayout.java | 1 + .../main/java/com/fr/design/mainframe/ComponentTree.java | 7 +++---- .../main/java/com/fr/design/mainframe/FormDesigner.java | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java b/designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java index bacb7a5b7..b9814a0f3 100644 --- a/designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java +++ b/designer-form/src/main/java/com/fr/design/designer/creator/XWFitLayout.java @@ -887,6 +887,7 @@ public class XWFitLayout extends XLayoutContainer { isRefreshing = true; this.remove(oldCreator); this.add(newCreator); + this.updateBoundsWidget(); isRefreshing = false; LayoutUtils.layoutContainer(this); } diff --git a/designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java b/designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java index 684037d8b..0c8649348 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java @@ -362,7 +362,6 @@ public class ComponentTree extends JTree { @Override public void mouseMoved(MouseEvent e) { - Point p = e.getPoint(); int selRow = tree.getRowForLocation(p.x, p.y); TreeCellRenderer r = tree.getCellRenderer(); @@ -371,12 +370,12 @@ public class ComponentTree extends JTree { Point point = tree.getPathBounds(path).getLocation(); SwingUtilities.convertPointToScreen(point, tree); XCreator comp = (XCreator) path.getLastPathComponent(); - if (comp.getXCreatorBaseOperate().supportSelected()){ + if (comp.getXCreatorBaseOperate().supportSelected()) { popupPreviewPane(point.y, comp); + return; } - } else { - hidePreviewPane(); } + hidePreviewPane(); } @Override diff --git a/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java b/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java index 581255896..683bf9b71 100644 --- a/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java +++ b/designer-form/src/main/java/com/fr/design/mainframe/FormDesigner.java @@ -1317,9 +1317,6 @@ public class FormDesigner extends TargetComponent
implements TreeSelection protected void setToolbarButtons() { - //自适应布局和底层都不能删除 - DesignerContext.getDesignerFrame().checkCombineUp(!isRootSelected(), NAME_ARRAY_LIST); - if (isParameterSelected()) { DesignerContext.getDesignerFrame().checkCombineUp(false, PARAMETER_TOOLAR_BAN_LIST); }