diff --git a/cocos/ui/UIText.cpp b/cocos/ui/UIText.cpp index 8e285304ef..480c05aa03 100644 --- a/cocos/ui/UIText.cpp +++ b/cocos/ui/UIText.cpp @@ -211,8 +211,6 @@ TextVAlignment Text::getTextVerticalAlignment()const void Text::setTextColor(Color4B color) { _labelRenderer->setTextColor(color); - updateContentSizeWithTextureSize(_labelRenderer->getContentSize()); - _labelRendererAdaptDirty = true; } const Color4B& Text::getTextColor()const