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) switch (dir)
{ {
case Direction::NONE:
case Direction::BOTH:
break;
case Direction::VERTICAL: case Direction::VERTICAL:
setLayoutType(Type::VERTICAL); setLayoutType(Type::VERTICAL);
break; break;
case Direction::HORIZONTAL: case Direction::HORIZONTAL:
setLayoutType(Type::HORIZONTAL); setLayoutType(Type::HORIZONTAL);
break; break;
case Direction::BOTH:
return;
default: default:
return; return;
break; break;