From f8285ab3d82d5fae924041a1f1b03c1b4db2ff54 Mon Sep 17 00:00:00 2001 From: Alexander Ivash Date: Fri, 5 Oct 2018 00:14:13 +0300 Subject: [PATCH] FB18673 - Last line of GOTO desktop notification text cropped off on bottom --- scripts/system/notifications.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/system/notifications.js b/scripts/system/notifications.js index 36fe264274..87a70fa5fe 100644 --- a/scripts/system/notifications.js +++ b/scripts/system/notifications.js @@ -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]; }