Browse Source

REPORT-107973 windows下颜色选择弹窗立即消失

newui
Leo.Qin 11 months ago
parent
commit
ba36ebec31
  1. 2
      designer-base/src/main/java/com/fr/design/style/color/ColorControlWindow.java
  2. 1
      designer-realize/src/main/java/com/fr/design/actions/cell/UIToolbarBorderButton.java

2
designer-base/src/main/java/com/fr/design/style/color/ColorControlWindow.java

@ -56,6 +56,8 @@ public abstract class ColorControlWindow extends JPopupMenu {
private void initComponents(boolean isSupportTransparent) {
setLightWeightPopupEnabled(JPopupMenu.getDefaultLightWeightPopupEnabled());
// windows下 需要手动处理焦点,不去抢占焦点,防止菜单栏弹窗消失
setFocusable(false);
this.setLayout(FRGUIPaneFactory.createBorderLayout());
initSelectionPopupPane(isSupportTransparent);
this.pack();

1
designer-realize/src/main/java/com/fr/design/actions/cell/UIToolbarBorderButton.java

@ -129,6 +129,7 @@ public class UIToolbarBorderButton extends UICombinationButton implements PopupH
setLightWeightPopupEnabled(JPopupMenu.getDefaultLightWeightPopupEnabled());
this.setLayout(FRGUIPaneFactory.createBorderLayout());
// windows下 需要手动处理焦点,不去抢占焦点,防止菜单栏弹窗消失
setFocusable(false);
setStyle(this, POPUP_MENU_DROPDOWN);

Loading…
Cancel
Save