From 993b735392b642e1ebad101e84509ae6a3033c22 Mon Sep 17 00:00:00 2001 From: andyque Date: Tue, 20 May 2014 10:24:22 +0800 Subject: [PATCH] closed #5183, done --- cocos/ui/UIWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/ui/UIWidget.cpp b/cocos/ui/UIWidget.cpp index 71de114da7..864eac6c09 100644 --- a/cocos/ui/UIWidget.cpp +++ b/cocos/ui/UIWidget.cpp @@ -235,7 +235,7 @@ void Widget::updateSizeAndPosition() Size pSize; if (widgetParent) { - pSize = widgetParent->getSize(); + pSize = widgetParent->getLayoutSize(); } else {