mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
label should not register size provider every frame
This commit is contained in:
@@ -400,7 +400,9 @@ var Label = cc.Class({
|
||||
if (this.overflow === Overflow.NONE) {
|
||||
this.node.setContentSize(this._sgNode.getContentSize());
|
||||
}
|
||||
this._registSizeProvider();
|
||||
if (this.node._sizeProvider !== this._sgNode) {
|
||||
this._registSizeProvider();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user