Browse Source

REPORT-55800 【组件背景分离】 通过组件树最终选中的组件与展示工具栏的组件不是同一个

final/10.0
hades 3 years ago
parent
commit
d56fc70ef5
  1. 5
      designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java

5
designer-form/src/main/java/com/fr/design/mainframe/ComponentTree.java

@ -411,6 +411,11 @@ public class ComponentTree extends JTree {
if (e.isControlDown() || e.isShiftDown()) {
return;
}
XCreator currentCreator = designer.getSelectionModel().getSelection().getSelectedCreator();
// 以当前选中的为准
if (currentCreator != selectedCreator) {
selectedCreator = currentCreator;
}
if (e.getButton() == MouseEvent.BUTTON1 && selectedCreator != null) {
showSelectedPopup(selectedCreator);
}

Loading…
Cancel
Save