Browse Source

Merge pull request #9864 from gabrielheming/master

Fixed fontOffset calc. Issue #9863
David Catuhe 4 years ago
parent
commit
0ce582f0b0
1 changed files with 1 additions and 1 deletions
  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");
         text.innerHTML = "Hg";
-        text.style.font = font;
+        text.setAttribute('style', `font: ${font} !important`);
 
         var block = document.createElement("div");
         block.style.display = "inline-block";