浏览代码

Merge pull request #9864 from gabrielheming/master

Fixed fontOffset calc. Issue #9863
David Catuhe 4 年之前
父节点
当前提交
0ce582f0b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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";