Fix slider value display when widget.label is present (#381)

This commit is contained in:
Chenlei Hu
2024-12-15 12:47:53 -08:00
committed by GitHub
parent 6956973be1
commit 7f0c3b02fb

View File

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