misc: lint

This commit is contained in:
jean-emmanuel 2023-07-03 16:52:02 +02:00
parent 2ecb510cb1
commit 8c0dfb7c4f

View file

@ -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))