We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 191aa99 + 383fb39 commit 805e359Copy full SHA for 805e359
extensions/gui/control-extension/CCScale9Sprite.js
@@ -961,8 +961,12 @@ cc.Scale9Sprite = cc.Node.extend(/** @lends cc.Scale9Sprite# */{
961
}
962
963
this.setContentSize(rect.width, rect.height);
964
- if(cc._renderType === cc._RENDER_TYPE_WEBGL)
+ if(cc._renderType === cc._RENDER_TYPE_WEBGL){
965
this.addChild(locScale9Image);
966
+ }else{
967
+ if(!this._cacheSprite.getParent())
968
+ this.addChild(this._cacheSprite);
969
+ }
970
971
if (this._spritesGenerated) {
972
// Restore color and opacity
0 commit comments