Skip to content

Commit

Permalink
Update TestToasts to include top/bottom center alignment options (kot…
Browse files Browse the repository at this point in the history
  • Loading branch information
bploeckelman committed Dec 10, 2022
1 parent 6cb8ef9 commit d091574
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/src/test/java/com/kotcrab/vis/ui/test/manual/TestToasts.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void resize () {
});

final VisSelectBox<String> alignment = new VisSelectBox<String>();
alignment.setItems("top left", "top right", "bottom left", "bottom right");
alignment.setItems("top left", "top right", "top center", "bottom left", "bottom right", "bottom center");
alignment.setSelectedIndex(1);
alignment.addListener(new ChangeListener() {
@Override
Expand All @@ -63,11 +63,17 @@ public void changed (ChangeEvent event, Actor actor) {
toastManager.setAlignment(Align.topRight);
break;
case 2:
toastManager.setAlignment(Align.bottomLeft);
toastManager.setAlignment(Align.top | Align.center);
break;
case 3:
toastManager.setAlignment(Align.bottomLeft);
break;
case 4:
toastManager.setAlignment(Align.bottomRight);
break;
case 5:
toastManager.setAlignment(Align.bottom | Align.center);
break;
}
}
});
Expand Down

0 comments on commit d091574

Please sign in to comment.