Merge pull request #10136 from andyque/fixSliderProgressBarRender

fix progress bar render issue when switch scale9
This commit is contained in:
minggo 2015-01-21 14:10:18 +08:00
commit 607ae4c2ca
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ void Slider::progressBarRendererScaleChangedWithSize()
if (_scale9Enabled) if (_scale9Enabled)
{ {
_progressBarRenderer->setPreferredSize(_contentSize); _progressBarRenderer->setPreferredSize(_contentSize);
_progressBarTextureSize = _progressBarRenderer->getContentSize(); _progressBarRenderer->setScale(1.0);
} }
else else
{ {