Merge pull request #14143 from ElderOrb/FB18673

FB18673 - Last line of GOTO desktop notification text cropped off on …
This commit is contained in:
Jeff Clinton 2018-11-13 14:05:21 -08:00 committed by GitHub
commit 18bf6bf975
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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];
}