SVGHMI: fix keyboard not showing svghmi
authorEdouard Tisserant
Fri, 03 Apr 2020 09:52:57 +0200
branchsvghmi
changeset 2916 4f3b130fd197
parent 2915 48c9a5f6ce38
child 2917 c8d923dd707f
SVGHMI: fix keyboard not showing
svghmi/svghmi.js
--- a/svghmi/svghmi.js	Fri Apr 03 08:30:00 2020 +0200
+++ b/svghmi/svghmi.js	Fri Apr 03 09:52:57 2020 +0200
@@ -467,6 +467,7 @@
 
 };
 
+var xmlns = "http://www.w3.org/2000/svg";
 var edit_callback;
 function edit_value(path, valuetype, callback, initial) {
 
@@ -475,7 +476,7 @@
     edit_callback = callback;
 
     let [element, parent] = detachable_elements[keypadid];
-    tmpgrp = document.createElement("g");
+    tmpgrp = document.createElementNS(xmlns,"g");
     tmpgrpattr = document.createAttribute("transform");
 
     let [xdest,ydest] = page_desc[current_visible_page].bbox;