mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 10:32:39 +08:00
Merge 1.9
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user