|
|
|
@ -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(FineUIScale.scale(new Dimension(popupMenuWidth, popupMenu.getPreferredSize().height))); |
|
|
|
|
popupMenu.setPopupSize(new Dimension(FineUIScale.scale(popupMenuWidth), popupMenu.getPreferredSize().height)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|