From c2546dc94d4ec6b71228c9707e796f7d1d20dbbd Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 31 May 2020 13:46:30 -0400 Subject: [PATCH] Fix --- commands/edit-meme/meme-gen-modern.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/edit-meme/meme-gen-modern.js b/commands/edit-meme/meme-gen-modern.js index f212aadc..88ceebd2 100644 --- a/commands/edit-meme/meme-gen-modern.js +++ b/commands/edit-meme/meme-gen-modern.js @@ -66,8 +66,9 @@ module.exports = class MemeGenModernCommand extends Command { const linesLen = (40 * lines.length) + (40 * (lineBreakLen - 1)) + (14 * lines.length) - + (14 * (lineBreakLen - 1)); - canvas.height += linesLen + 14; + + (14 * (lineBreakLen - 1)) + + 14; + canvas.height += linesLen; ctx.font = '40px Noto'; ctx.textBaseline = 'top'; ctx.fillStyle = 'white';