diff --git a/cocos/gui/UILayout.cpp b/cocos/gui/UILayout.cpp index c70f109a14..fcdb4fb621 100644 --- a/cocos/gui/UILayout.cpp +++ b/cocos/gui/UILayout.cpp @@ -490,6 +490,7 @@ const Rect& Layout::getClippingRect() void Layout::onSizeChanged() { Widget::onSizeChanged(); + setContentSize(_size); setStencilClippingSize(_size); _doLayoutDirty = true; if (_backGroundImage)