From b6c8f613ea0fdfe4042dbb787f966440e9cca419 Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Sun, 13 Sep 2009 15:52:44 +0000 Subject: [PATCH] Changes tooltip row size. Adds work on the new MediaService (Work in Progress) --- .../communicator/impl/gui/utils/ExtendedTooltip.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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;