beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: fix input widget sometime messing with font style
2022-12-16, Edouard Tisserant
39ae17a1cabe
Parents
c17fac18c663
Children
3c60c78dfa5d
SVGHMI: fix input widget sometime messing with font style
1 files changed, 2 insertions(+), 2 deletions(-)
+2
-2
svghmi/widget_input.ysl2
--- a/svghmi/widget_input.ysl2 Thu Dec 08 11:17:15 2022 +0100
+++ b/svghmi/widget_input.ysl2 Fri Dec 16 13:41:03 2022 +0100
@@ -92,7 +92,7 @@
if "$have_value" {
| animate: function(){
- | this.value_elt.textContent = String(this.display);
+ | multiline_to_svg_text(this.value_elt, String(this.display));
| },
}
@@ -114,7 +114,7 @@
}
if "$have_value" {
- | this.value_elt.textContent = "";
+ | multiline_to_svg_text(this.value_elt, "");
}
| },
}