IDEA-65266 Pressing Ctrl+P hid text under cursor + other hint fixes - 2

This commit is contained in:
Kirill Kalishev
2011-02-17 21:11:44 +03:00
parent fa07d6b59b
commit ca1bdc825d
@@ -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));
}
}
}