mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
Merge pull request #586 from zilongshanren/fix-label-related-issues-v1.0
fix label positioning
This commit is contained in:
@@ -75,12 +75,13 @@
|
||||
if (opacityDirty)
|
||||
this._syncDisplayOpacity();
|
||||
|
||||
if(colorDirty || opacityDirty || (locFlag & flags.textDirty)){
|
||||
if(colorDirty || opacityDirty || (this._dirtyFlag & flags.textDirty)){
|
||||
this._rebuildLabelSkin();
|
||||
}
|
||||
|
||||
if (locFlag & flags.transformDirty) //update the transform
|
||||
if (this._dirtyFlag & flags.transformDirty) {
|
||||
this.transform(parentCmd);
|
||||
}
|
||||
};
|
||||
|
||||
proto._getLineHeight = function () {
|
||||
|
||||
Reference in New Issue
Block a user