FB18673 - Last line of GOTO desktop notification text cropped off on bottom

This commit is contained in:
Alexander Ivash 2018-10-05 00:14:13 +03:00
parent 4d7b2bb429
commit f8285ab3d8

View file

@ -343,6 +343,7 @@
}
var CLOSE_NOTIFICATION_ICON = Script.resolvePath("assets/images/close-small-light.svg");
var TEXT_OVERLAY_FONT_SIZE_IN_PIXELS = 18.0; // taken from TextOverlay::textSize
// This function creates and sizes the overlays
function createNotification(text, notificationType, imageProperties) {
@ -362,7 +363,7 @@
if (text.length >= breakPoint) {
breaks = count;
}
extraLine = breaks * 16.0;
extraLine = breaks * TEXT_OVERLAY_FONT_SIZE_IN_PIXELS;
for (i = 0; i < heights.length; i += 1) {
stack = stack + heights[i];
}