fix watch mode

This commit is contained in:
Anton Lavrenov
2019-01-19 21:29:52 -05:00
parent 76299cd07a
commit 521070cb05
5 changed files with 54 additions and 1325 deletions

View File

@@ -365,9 +365,7 @@ export class Text extends Shape {
this.textArr = [];
getDummyContext().font = this._getContextFont();
var additionalWidth = shouldAddEllipsis
? this._getTextWidth(ELLIPSIS)
: 0;
var additionalWidth = shouldAddEllipsis ? this._getTextWidth(ELLIPSIS) : 0;
for (var i = 0, max = lines.length; i < max; ++i) {
var line = lines[i];