IDEA-136134 Ugly combobox highlighting on mac

This commit is contained in:
Vassiliy.Kudryashov
2015-02-10 17:09:18 +03:00
parent 0d67947ca5
commit 34418ab8fc
@@ -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) {