From 34418ab8fcf232a7ccd8f2ea9620f2ab4d07910b Mon Sep 17 00:00:00 2001 From: "Vassiliy.Kudryashov" Date: Tue, 10 Feb 2015 17:09:18 +0300 Subject: [PATCH] IDEA-136134 Ugly combobox highlighting on mac --- .../src/com/intellij/openapi/ui/ComboBox.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/platform-api/src/com/intellij/openapi/ui/ComboBox.java b/platform/platform-api/src/com/intellij/openapi/ui/ComboBox.java index 8de3de72fc97..18619d0af71e 100644 --- a/platform/platform-api/src/com/intellij/openapi/ui/ComboBox.java +++ b/platform/platform-api/src/com/intellij/openapi/ui/ComboBox.java @@ -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) {