Skip to content

Commit

Permalink
Fix layout shift when resizing the game while in a lobby
Browse files Browse the repository at this point in the history
Resizing the applet caused the lobby screen to do a new layout and
since it was using the default LayoutManager (FlowLayout), the panels
were being placed in unintended places. Most other classes explicitly
set the layout manager to null to avoid this, however, looks like this
was overlooked in LobbyPanel.
  • Loading branch information
StenAL committed May 27, 2024
1 parent b530afa commit 36ae773
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/main/java/agolf/lobby/LobbyPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public LobbyPanel(GameContainer gameContainer, int width, int height) {
this.gameContainer = gameContainer;
this.width = width;
this.height = height;
this.setLayout(null);
this.setSize(width, height);
}

Expand Down

0 comments on commit 36ae773

Please sign in to comment.