Merge 1.9

This commit is contained in:
Jare Guo
2018-04-29 14:35:46 +08:00
+3
View File
@@ -1171,6 +1171,9 @@ cc.Scale9Sprite = _ccsg.Node.extend({
this._renderCmd._needDraw = false;
var self = this;
function onResourceDataLoaded () {
if (!self.isValid) {
return;
}
if (self._contentSize.width === 0 && self._contentSize.height === 0) {
self.setContentSize(self._spriteFrame._rect);
}