From b73b4c2e1099dfba44dae4e23d33975982ec869b Mon Sep 17 00:00:00 2001 From: Evgeny Zakrevsky Date: Mon, 27 Feb 2012 21:30:05 +0400 Subject: [PATCH] IDEA-58164 Prettify inspection profile setting popup --- .../intellij/codeInsight/daemon/impl/HectorComponent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HectorComponent.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HectorComponent.java index d8d1cea46466..d994196e6b6a 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HectorComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HectorComponent.java @@ -128,7 +128,7 @@ public class HectorComponent extends JPanel { GridBagConstraints.NONE, new Insets(0, 5, 0, 0), 0, 0); JPanel panel = new JPanel(new GridBagLayout()); - panel.setBorder(IdeBorderFactory.createTitledBorder(myTitle, false, false, true, new Insets(5, 0, 0, 0))); + panel.setBorder(IdeBorderFactory.createTitledBorder(myTitle, false)); final boolean addLabel = mySliders.size() > 1; if (addLabel) { layoutVertical(panel); @@ -147,6 +147,7 @@ public class HectorComponent extends JPanel { final HyperlinkLabel configurator = new HyperlinkLabel("Configure inspections"); gc.insets.right = 5; + gc.insets.bottom = 10; gc.weightx = 0; gc.fill = GridBagConstraints.NONE; gc.anchor = GridBagConstraints.EAST; @@ -184,7 +185,7 @@ public class HectorComponent extends JPanel { @Override public Dimension getPreferredSize() { final Dimension preferredSize = super.getPreferredSize(); - final int width = getFontMetrics(getFont()).stringWidth(myTitle) + 60; + final int width = 300; if (preferredSize.width < width){ preferredSize.width = width; }