fix slider scale9 render

This commit is contained in:
andyque 2015-01-22 15:53:33 +08:00
parent 0c8d10b8dd
commit 94e35d8d95
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ void Slider::setPercent(int percent)
_slidBallRenderer->setPosition(dis, _contentSize.height / 2.0f); _slidBallRenderer->setPosition(dis, _contentSize.height / 2.0f);
if (_scale9Enabled) if (_scale9Enabled)
{ {
_progressBarRenderer->setPreferredSize(Size(dis,_progressBarTextureSize.height)); _progressBarRenderer->setPreferredSize(Size(dis,_contentSize.height));
} }
else else
{ {