Fix ListView::setDirection issue

This commit is contained in:
pandamicro 2015-01-30 17:02:20 +08:00 committed by minggo
parent 2f618a9e09
commit 9bf22a51ea
1 changed files with 3 additions and 2 deletions

View File

@ -385,14 +385,15 @@ void ListView::setDirection(Direction dir)
{
switch (dir)
{
case Direction::NONE:
case Direction::BOTH:
break;
case Direction::VERTICAL:
setLayoutType(Type::VERTICAL);
break;
case Direction::HORIZONTAL:
setLayoutType(Type::HORIZONTAL);
break;
case Direction::BOTH:
return;
default:
return;
break;