SVGHMI: fix input widget sometime messing with font style
authorEdouard Tisserant
Fri, 16 Dec 2022 13:41:03 +0100
changeset 3706 39ae17a1cabe
parent 3704 c17fac18c663
child 3707 3c60c78dfa5d
SVGHMI: fix input widget sometime messing with font style
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, "");
     }
     |     },
 }