From ca1bdc825d472787d793874e32bf17246d59e59d Mon Sep 17 00:00:00 2001 From: Kirill Kalishev Date: Thu, 17 Feb 2011 21:11:44 +0300 Subject: [PATCH] IDEA-65266 Pressing Ctrl+P hid text under cursor + other hint fixes - 2 --- .../intellij/codeInsight/hint/ParameterInfoComponent.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java b/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java index fd82f3913f66..5c459cde6457 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hint/ParameterInfoComponent.java @@ -313,11 +313,9 @@ class ParameterInfoComponent extends JPanel{ Dimension normalPreferredSize = super.getPreferredSize(); // some fonts (for example, Arial Black Cursiva) have NORMAL characters wider than BOLD characters - Dimension d = new Dimension(Math.max(boldPreferredSize.width, normalPreferredSize.width), - Math.max(boldPreferredSize.height, normalPreferredSize.height)); - System.out.println("d = " + d); - return d; + return new Dimension(Math.max(boldPreferredSize.width, normalPreferredSize.width), + Math.max(boldPreferredSize.height, normalPreferredSize.height)); } } }