mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-136134 Ugly combobox highlighting on mac
This commit is contained in:
@@ -272,6 +272,15 @@ public class ComboBox extends ComboBoxWithWidePopup implements AWTEventListener
|
||||
return new Dimension(width, UIUtil.fixComboBoxHeight(preferredSize.height));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Insets getInsets() {
|
||||
Insets insets = super.getInsets();
|
||||
if (SystemInfo.isMac && UIUtil.isUnderAquaLookAndFeel() && isEditable) {
|
||||
insets.right += 2;
|
||||
}
|
||||
return insets;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasFocus() {
|
||||
if (SystemInfo.isMac && UIUtil.isUnderAquaLookAndFeel() && myPaintingNow && isEditable) {
|
||||
|
||||
Reference in New Issue
Block a user