Royi Bernthal 7 years ago
parent
commit
d046215003
1 changed files with 6 additions and 3 deletions
  1. 6 3
      gui/src/controls/textBlock.ts

+ 6 - 3
gui/src/controls/textBlock.ts

@@ -215,12 +215,15 @@ module BABYLON.GUI {
             }
 
             if (this._resizeToFit) {
-                this.width = 100 + 'px'; //maxLineWidth + 'px';
+                this.width = maxLineWidth + 'px';
                 this.height = this._fontOffset.height * this._lines.length + 'px';
             }
 
-            console.log('width', maxLineWidth);
-            console.log('height', this._fontOffset.height * this._lines.length);
+            console.log('width', this.width);
+            console.log('height', this.height);
+
+            /*console.log('width', maxLineWidth);
+            console.log('height', this._fontOffset.height * this._lines.length);*/
         }
     }
 }