mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14080 from 1scaR1/v3
Fixed enabling of scale9 background in ccui.Layout
This commit is contained in:
commit
27fc6b24ee
|
@ -710,6 +710,11 @@ void Layout::setBackGroundImageScale9Enabled(bool able)
|
|||
setBackGroundImage(_backGroundImageFileName,_bgImageTexType);
|
||||
}
|
||||
_backGroundImage->setScale9Enabled(_backGroundScale9Enabled);
|
||||
|
||||
if (able) {
|
||||
_backGroundImage->setPreferredSize(_contentSize);
|
||||
}
|
||||
|
||||
setBackGroundImageCapInsets(_backGroundImageCapInsets);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue