From e450a7b57d79008396f2be17af48919bae59a0b2 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Sun, 15 Dec 2024 12:34:22 -0800 Subject: [PATCH] Fix slider value display when widget.label is present --- src/LGraphCanvas.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 74a400e..50534c5 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -6240,8 +6240,7 @@ export class LGraphCanvas { ctx.textAlign = "center" ctx.fillStyle = text_color ctx.fillText( - w.label || - w.name + + (w.label || w.name) + " " + Number(w.value).toFixed( w.options.precision != null ? w.options.precision : 3,