improve setLineHeight warning

This commit is contained in:
knoxHuang
2018-01-12 15:56:38 +08:00
parent df36e5dc9c
commit 73d6435de5
+4 -1
View File
@@ -113,7 +113,10 @@ jsbLabel.prototype.setLineHeight = function (height) {
this._setLineHeight(height);
}
else {
cc.warnID(4013);
// Todo support setLineHeight for Native
if (40 !== height) {
cc.warnID(4013);
}
}
};