Fix emotes not being vertically centered.

This commit is contained in:
sigonasr2 2018-11-02 18:47:06 -05:00
parent 01f4d1c261
commit a2f3664da3
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -284,7 +284,7 @@ public class ScrollingText {
String cutstring = basemsg.substring(0, pos);
double width = TextUtils.calculateStringBoundsFont(cutstring, sigIRC.panel.programFont).getWidth();
//System.out.println("Width of '"+cutstring+"' is "+width);
sigIRC.createEmoticon(e, this, (int)(width), 0);
sigIRC.createEmoticon(e, this, (int)(width), 8);
textMaxHeight = Math.max(textMaxHeight, e.getImage().getHeight());
//textMaxWidth = (int)(width + e.getImage().getWidth()+1);
}