From 8c0dfb7c4f19f4e6f531fa6f3d48f7f459f5d5e3 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 3 Jul 2023 16:52:02 +0200 Subject: [PATCH] misc: lint --- src/client/widgets/basics/input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/widgets/basics/input.js b/src/client/widgets/basics/input.js index 6f56d778..b85a1b1a 100644 --- a/src/client/widgets/basics/input.js +++ b/src/client/widgets/basics/input.js @@ -198,8 +198,8 @@ class Input extends Canvas { this.ctx.fillStyle = this.cssVars.colorText - // hack ? prevent weird offset added for unknown reason when font size increases - var offy = this.fontSize / 10; + // hack ? prevent weird offset added for unknown reason when font size increases + var offy = this.fontSize / 10 if (this.textAlign == 'center') { this.ctx.fillText(v, Math.round(width/2), Math.round(height/2 + offy))