IDEA-148433 OS X default theme: dropdown lists don't look good

(cherry picked from commit 4b4c0776ae1360182e8aee378b040401d5e07d77)
This commit is contained in:
Konstantin Bulenkov
2015-11-26 14:23:29 +01:00
parent 1d2d92c32c
commit 348b480558
@@ -152,6 +152,7 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent
setModel(new MyButtonModel());
setHorizontalAlignment(LEFT);
setFocusable(false);
putClientProperty("styleCombo", Boolean.TRUE);
Insets margins = getMargin();
setMargin(JBUI.insets(margins.top, 2, margins.bottom, 2));
if (isSmallVariant()) {
@@ -501,6 +502,7 @@ public abstract class ComboBoxAction extends AnAction implements CustomComponent
invalidate();
repaint();
setSize(getPreferredSize());
repaint();
}
}