Merge pull request #7674 from darkdukey/patch-12

Fix opacity for Slider
This commit is contained in:
minggo 2014-08-06 09:50:47 +08:00
commit e43b05955f
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ void Slider::initRenderer()
_slidBallRenderer->addChild(_slidBallNormalRenderer);
_slidBallRenderer->addChild(_slidBallPressedRenderer);
_slidBallRenderer->addChild(_slidBallDisabledRenderer);
_slidBallRenderer->setCascadeColorEnabled(true);
_slidBallRenderer->setCascadeOpacityEnabled(true);
addProtectedChild(_slidBallRenderer, SLIDBALL_RENDERER_Z, -1);
}