Merge pull request #14080 from 1scaR1/v3

Fixed enabling of scale9 background in ccui.Layout
This commit is contained in:
pandamicro 2015-10-10 09:39:09 +08:00
commit 27fc6b24ee
1 changed files with 5 additions and 0 deletions

View File

@ -710,6 +710,11 @@ void Layout::setBackGroundImageScale9Enabled(bool able)
setBackGroundImage(_backGroundImageFileName,_bgImageTexType);
}
_backGroundImage->setScale9Enabled(_backGroundScale9Enabled);
if (able) {
_backGroundImage->setPreferredSize(_contentSize);
}
setBackGroundImageCapInsets(_backGroundImageCapInsets);
}