mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
hotfix for fireball-x/fireball#891
This commit is contained in:
@@ -406,7 +406,10 @@ ccui.Scale9Sprite = cc.Scale9Sprite = _ccsg.Node.extend(/** @lends ccui.Scale9Sp
|
||||
},
|
||||
|
||||
// overrides
|
||||
setContentSize : function(size){
|
||||
setContentSize : function(size, y){
|
||||
if (y !== undefined) {
|
||||
size = new cc.Size(size, y);
|
||||
}
|
||||
if (cc.sizeEqualToSize(this._contentSize,size))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user