Skip to content

Commit 440f792

Browse files
authored
Merge pull request #3419 from pandamicro/develop
Fix issues
2 parents 544c015 + 5ab5a44 commit 440f792

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cocos2d/core/labelttf/CCLabelTTF.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ cc.LabelTTF = cc.Sprite.extend(/** @lends cc.LabelTTF# */{
133133
this._renderCmd._setFontStyle(this._fontName, fontSize, this._fontStyle, this._fontWeight);
134134
this.string = strInfo;
135135
this._renderCmd._setColorsString();
136-
if (this._string) {
137-
this._renderCmd._updateTexture();
138-
}
136+
this._renderCmd._updateTexture();
139137
this._setUpdateTextureDirty();
140138

141139
// Needed for high dpi text.

cocos2d/core/labelttf/CCLabelTTFCanvasRenderCmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ cc.LabelTTF._firsrEnglish = /^[a-zA-Z0-9ÄÖÜäöüßéèçàùêâîôû]/;
402402
proto._updateTexture = function () {
403403
this._dirtyFlag = this._dirtyFlag & cc.Node._dirtyFlags.textDirty ^ this._dirtyFlag;
404404
var node = this._node;
405+
node._needUpdateTexture = false;
405406
var locContentSize = node._contentSize;
406407
this._updateTTF();
407408
var width = locContentSize.width, height = locContentSize.height;

extensions/cocostudio/loader/parsers/uiParser-1.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
var parser = new Parser();
129129

130130
parser.generalAttributes = function (widget, options) {
131-
widget._ignoreSize = options["ignoreSize"] || false;
131+
widget._ignoreSize = options["ignoreSize"] || true;
132132
widget._sizeType = options["sizeType"] || 0;
133133
widget._positionType = options["positionType"] || 0;
134134

0 commit comments

Comments
 (0)