mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10136 from andyque/fixSliderProgressBarRender
fix progress bar render issue when switch scale9
This commit is contained in:
commit
607ae4c2ca
|
@ -554,7 +554,7 @@ void Slider::progressBarRendererScaleChangedWithSize()
|
|||
if (_scale9Enabled)
|
||||
{
|
||||
_progressBarRenderer->setPreferredSize(_contentSize);
|
||||
_progressBarTextureSize = _progressBarRenderer->getContentSize();
|
||||
_progressBarRenderer->setScale(1.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue