diff --git a/cocos/ui/UIScale9Sprite.cpp b/cocos/ui/UIScale9Sprite.cpp index a256098c71..2eaece828c 100644 --- a/cocos/ui/UIScale9Sprite.cpp +++ b/cocos/ui/UIScale9Sprite.cpp @@ -431,6 +431,8 @@ void Scale9Sprite::copyTo(Scale9Sprite* copy) const copy->setRenderingType(_renderingType); copy->setScale9Enabled(isScale9Enabled()); + // setStretchEnabled after setScale9Enabled, fix issue: https://github.com/adxeproject/adxe/issues/491 + copy->setStretchEnabled(isStretchEnabled()); copy->_isPatch9 = _isPatch9; copy->_brightState = _brightState;