mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
fixed richtext (#2667)
This commit is contained in:
@@ -582,7 +582,8 @@ var Label = cc.Class({
|
||||
|
||||
if (CC_EDITOR || force) {
|
||||
this._activateMaterial();
|
||||
Label._assembler.updateRenderData(this);
|
||||
this._updateAssembler();
|
||||
this._assembler.updateRenderData(this);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user