Browse Source

Merge pull request #8893 from Popov72/fix-textblock-fontsize

Fix wrong font properties computation when the window is small
sebavan 5 năm trước cách đây
mục cha
commit
5786024e3c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      gui/src/2D/controls/control.ts

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

@@ -2016,6 +2016,7 @@ export class Control {
         block.style.verticalAlign = "bottom";
 
         var div = document.createElement("div");
+        div.style.whiteSpace = "nowrap";
         div.appendChild(text);
         div.appendChild(block);