diff --git a/src/net/java/sip/communicator/impl/gui/utils/ExtendedTooltip.java b/src/net/java/sip/communicator/impl/gui/utils/ExtendedTooltip.java index cac9417d7..a99cb9f62 100644 --- a/src/net/java/sip/communicator/impl/gui/utils/ExtendedTooltip.java +++ b/src/net/java/sip/communicator/impl/gui/utils/ExtendedTooltip.java @@ -21,7 +21,7 @@ public class ExtendedTooltip extends JToolTip { - private static final int textRowHeight = 15; + private static final int textRowHeight = 16; private final JLabel imageLabel = new JLabel(); @@ -169,7 +169,14 @@ public Dimension getPreferredSize(JComponent c) int height = 0; if (isListViewEnabled) - height = imageHeight > textHeight ? imageHeight : textHeight; + { + height = imageHeight > textHeight + ? imageHeight + //Emil: adding extra row height is a dirty trick to fix + //the size but I don't have the time to look at the issue + //now + : (textHeight + textRowHeight/3); + } else height = imageHeight + textHeight;