mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
fixed overlapping back and disconnect buttons
This commit is contained in:
@@ -123,7 +123,7 @@ public final class Server {
|
||||
new EventFlow().addPostEvent(new NetworkEvents.SendLogin(clientId, user)).postEvent();
|
||||
|
||||
primary = new ServerView(user, this::sendChallenge, this::disconnect);
|
||||
WidgetContainer.getCurrentView().transitionNext(primary);
|
||||
WidgetContainer.getCurrentView().transitionNextCustom(primary);
|
||||
|
||||
startPopulateScheduler();
|
||||
populateGameList();
|
||||
|
||||
@@ -37,6 +37,11 @@ public abstract class ViewWidget extends StackWidget {
|
||||
view.add(Pos.BOTTOM_LEFT, Primitive.vbox(backButton));
|
||||
}
|
||||
|
||||
public void transitionNextCustom(ViewWidget view) {
|
||||
view.previous = this;
|
||||
replace(Pos.CENTER, view);
|
||||
}
|
||||
|
||||
public void transitionPrevious() {
|
||||
if (previous == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user