revert error changes

This commit is contained in:
Liam 2015-12-07 16:21:12 +08:00
parent e1656264fc
commit 15072a6dd3
1 changed files with 0 additions and 3 deletions

View File

@ -258,9 +258,6 @@ void Button::loadTextureNormal(const std::string& normal,TextureResType texType)
void Button::setupNormalTexture(bool textureLoaded) void Button::setupNormalTexture(bool textureLoaded)
{ {
_normalTextureSize = _buttonNormalRenderer->getContentSize(); _normalTextureSize = _buttonNormalRenderer->getContentSize();
// force update _customSize, fixed issue:
// https://github.com/cocos2d/cocos2d-x/issues/12249
_customSize = _normalTextureSize;
this->updateChildrenDisplayedRGBA(); this->updateChildrenDisplayedRGBA();