From 62020483fc5f962a70a4d04e95f0fed41eaa137a Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 19 Jan 2015 17:09:15 +0800 Subject: [PATCH] the ui widget need to refresh size by ignore state --- cocos/ui/UIWidget.cpp | 4 ---- 1 file changed, 4 deletions(-) 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) {