Skip to content

Commit

Permalink
Merge pull request #89 from martinjonsson01/hotfix
Browse files Browse the repository at this point in the history
Hotfix Info panel
  • Loading branch information
jonathan-lindqvist authored Oct 20, 2021
2 parents c19e66b + 9aaf492 commit 0c9f320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/thebois/views/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
public class GameScreen implements Screen {

private static final float INFO_PANEL_WIDTH = 250f;
private final OrthographicCamera camera;
private final FitViewport viewport;
private final Color backgroundColor = new Color(0, 0, 0.2f, 1);
Expand Down Expand Up @@ -59,7 +60,7 @@ private void createStage() {

final Table infoAndGameTable = new Table();
infoAndGameTable.setFillParent(true);
infoAndGameTable.add(infoView.getWidgetContainer()).fillY().expandY();
infoAndGameTable.add(infoView.getWidgetContainer()).fill().expand();
infoAndGameTable.add(gameAndToolbarContainer).top().left().expandY().fillY();
// Add to stage
stage.addActor(infoAndGameTable);
Expand Down

0 comments on commit 0c9f320

Please sign in to comment.