fix off by two on the string breaking in notifications (strings were able to overshoot by one pixel)
This commit is contained in:
parent
2985d65193
commit
a9168696fb
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ public class NotificationRender {
|
|||
return;
|
||||
|
||||
String s = notif.text;
|
||||
s = TextSplitter.breakText(s, xSize - padding * 2);
|
||||
s = TextSplitter.breakText(s, xSize - 2 - padding * 2);
|
||||
|
||||
int ys = TextSplitter.getStringHeight(s) + 1 + padding * 2;
|
||||
ys = notif.opacity(ys, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue