mirror of https://github.com/axmolengine/axmol.git
Fix ListView::setDirection issue
This commit is contained in:
parent
2f618a9e09
commit
9bf22a51ea
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue