Changes tooltip row size. Adds work on the new MediaService (Work in Progress)

cusax-fix
Emil Ivov 17 years ago
parent 51c6fdf53e
commit b6c8f613ea

@ -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;

Loading…
Cancel
Save