|
|
|
@ -44,7 +44,7 @@ import static com.fine.theme.utils.FineUIStyle.setStyle;
|
|
|
|
|
public class MenuDef extends ShortCut { |
|
|
|
|
|
|
|
|
|
private static final int MENU_DEFAULTWDITH = 156; |
|
|
|
|
private static final int BLANK_WIDTH = 18; |
|
|
|
|
private static final int BLANK_WIDTH = 22; |
|
|
|
|
|
|
|
|
|
private static final Set<String> FORBIDDEN_SET = new HashSet<>(); |
|
|
|
|
|
|
|
|
@ -566,7 +566,7 @@ public class MenuDef extends ShortCut {
|
|
|
|
|
private void updatePopupMenuSize() { |
|
|
|
|
int preferredWidth = popupMenu.getPreferredSize().width - BLANK_WIDTH; // 减少行尾的空白部分
|
|
|
|
|
int popupMenuWidth = preferredWidth > MENU_DEFAULTWDITH ? preferredWidth : MENU_DEFAULTWDITH; |
|
|
|
|
popupMenu.setPopupSize(new Dimension(FineUIScale.scale(popupMenuWidth), popupMenu.getPreferredSize().height)); |
|
|
|
|
popupMenu.setPopupSize(new Dimension(popupMenuWidth, popupMenu.getPreferredSize().height)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|