Explorar o código

Fix textblock bug

David Catuhe %!s(int64=6) %!d(string=hai) anos
pai
achega
b4b418bc08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/src/2D/controls/textBlock.ts

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

@@ -439,7 +439,7 @@ export class TextBlock extends Control {
 
                 let newHeight = this.paddingTopInPixels + this.paddingBottomInPixels + this._fontOffset.height * lines.length;
 
-                if (this._lines.length > 0 && this._lineSpacing.internalValue !== 0) {
+                if (lines.length > 0 && this._lineSpacing.internalValue !== 0) {
                     let lineSpacing = 0;
                     if (this._lineSpacing.isPixel) {
                         lineSpacing = this._lineSpacing.getValue(this._host);