Browse Source

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

Merge in DESIGN/design from ~HADES/design:final/10.0 to final/10.0

* commit 'd56fc70ef5104bace16c9a1241e8f7f16b951707':
  REPORT-55800 【组件背景分离】 通过组件树最终选中的组件与展示工具栏的组件不是同一个
final/10.0
Kara 3 years ago
parent
commit
ef274434b0
  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