label should not register size provider every frame

This commit is contained in:
Jare Guo
2016-05-23 15:02:02 +08:00
parent f7657625b0
commit a568ac9269
+3 -1
View File
@@ -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();
}
}
}
});