mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-191985 Speed search is truncated
This commit is contained in:
@@ -477,7 +477,8 @@ public abstract class SpeedSearchBase<Comp extends JComponent> extends SpeedSear
|
||||
@Override
|
||||
public Dimension getPreferredSize() {
|
||||
Dimension dim = super.getPreferredSize();
|
||||
dim.width = getFontMetrics(getFont()).stringWidth(getText()) + 10;
|
||||
Insets m = getMargin();
|
||||
dim.width = getFontMetrics(getFont()).stringWidth(getText()) + 10 + m.left + m.right;
|
||||
return dim;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user