Skip to content

Commit

Permalink
Fix slider value display when widget.label is present (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Dec 15, 2024
1 parent 6956973 commit 7f0c3b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7f0c3b0

Please sign in to comment.