fix listview insert child at index bug

This commit is contained in:
andyque 2014-07-18 18:02:46 +08:00
parent 21647839b6
commit 4fa1af584c
2 changed files with 5 additions and 4 deletions

View File

@ -987,10 +987,14 @@ LayoutManager* Layout::createLayoutManager()
void Layout::doLayout()
{
if (!_doLayoutDirty)
{
return;
}
sortAllChildren();
LayoutManager* executant = this->createLayoutManager();
if (executant)

View File

@ -261,10 +261,7 @@ void Widget::setContentSize(const cocos2d::Size &contentSize)
{
_contentSize = getVirtualRendererSize();
}
else
{
_contentSize = contentSize;
}
if (_running)
{
Widget* widgetParent = getWidgetParent();