fixed richtext (#2667)

This commit is contained in:
yinkaile
2018-05-11 15:42:53 +08:00
committed by pandamicro
parent 15e63fc817
commit f326869f47
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -582,7 +582,8 @@ var Label = cc.Class({
if (CC_EDITOR || force) {
this._activateMaterial();
Label._assembler.updateRenderData(this);
this._updateAssembler();
this._assembler.updateRenderData(this);
}
},
+1 -1
View File
@@ -421,9 +421,9 @@ var RichText = cc.Class({
labelSegment._styleIndex = styleIndex;
labelSegment._lineCount = this._lineCount;
labelSegment.setAnchorPoint(0, 0);
this._applyTextAttribute(labelSegment);
labelSegment.setAnchorPoint(0, 0);
this.node.addChild(labelSegment);
this._labelSegments.push(labelSegment);