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)
|
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;
|
||||||
|
|
Loading…
Reference in New Issue