From 7f7506fb99efa3ac3366ade093371a24dcf9b0a8 Mon Sep 17 00:00:00 2001 From: andyque Date: Wed, 21 Jan 2015 13:41:40 +0800 Subject: [PATCH] fix progress bar render issue when switch scale9 --- cocos/ui/UISlider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/ui/UISlider.cpp b/cocos/ui/UISlider.cpp index 0547752e4e..a664425885 100644 --- a/cocos/ui/UISlider.cpp +++ b/cocos/ui/UISlider.cpp @@ -554,7 +554,7 @@ void Slider::progressBarRendererScaleChangedWithSize() if (_scale9Enabled) { _progressBarRenderer->setPreferredSize(_contentSize); - _progressBarTextureSize = _progressBarRenderer->getContentSize(); + _progressBarRenderer->setScale(1.0); } else {