mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 16:55:06 +02:00
Merge pull request #14143 from ElderOrb/FB18673
FB18673 - Last line of GOTO desktop notification text cropped off on …
This commit is contained in:
commit
18bf6bf975
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue