Skip to content

Commit 4b73d41

Browse files
committed
Merge pull request #2423 from joshuastray/labelttf
Fixed LabelTTF#_updateString bug
2 parents 2a73c99 + 92ea102 commit 4b73d41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cocos2d/core/labelttf/CCLabelTTF.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
596596
}
597597
},
598598
_updateString: function () {
599+
if ((!this._string || this._string === "") && this._string !== this._originalText)
600+
cc.renderer.childrenOrderDirty = true;
601+
599602
this._string = this._originalText;
600603
},
601604

0 commit comments

Comments
 (0)