Sfoglia il codice sorgente

Merge pull request #9864 from gabrielheming/master

Fixed fontOffset calc. Issue #9863
David Catuhe 5 anni fa
parent
commit
0ce582f0b0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      gui/src/2D/controls/control.ts

+ 1 - 1
gui/src/2D/controls/control.ts

@@ -2134,7 +2134,7 @@ export class Control {
 
 
         var text = document.createElement("span");
         var text = document.createElement("span");
         text.innerHTML = "Hg";
         text.innerHTML = "Hg";
-        text.style.font = font;
+        text.setAttribute('style', `font: ${font} !important`);
 
 
         var block = document.createElement("div");
         var block = document.createElement("div");
         block.style.display = "inline-block";
         block.style.display = "inline-block";