fixed bug of layout

This commit is contained in:
CaiWenzhi 2014-01-09 15:43:18 +08:00
parent 4cadcca497
commit 19f0e55464
1 changed files with 1 additions and 0 deletions

View File

@ -490,6 +490,7 @@ const Rect& Layout::getClippingRect()
void Layout::onSizeChanged()
{
Widget::onSizeChanged();
setContentSize(_size);
setStencilClippingSize(_size);
_doLayoutDirty = true;
if (_backGroundImage)