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 {