diff --git a/cocos/ui/UIWidget.cpp b/cocos/ui/UIWidget.cpp index d99e0a8042..afb98bf8f8 100644 --- a/cocos/ui/UIWidget.cpp +++ b/cocos/ui/UIWidget.cpp @@ -465,10 +465,6 @@ void Widget::ignoreContentAdaptWithSize(bool ignore) this->setContentSize(_customSize); return; } - if (_ignoreSize == ignore) - { - return; - } _ignoreSize = ignore; if (_ignoreSize) {