From e663e9f9eaa35cc2d0ceb5f3a75e7d1877a7c75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 19 May 2016 20:47:34 +0200 Subject: PlayMeny: fix width calculation --- core/src/ch/asynk/rustanddust/menu/PlayMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java index 2472952..8babc57 100644 --- a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java +++ b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java @@ -93,7 +93,7 @@ public class PlayMenu extends Patch implements MenuCtrl.Panel h += (2 * padding); h = Math.min(h, Gdx.graphics.getHeight() - 60); - float w = title.getWidth() + PADDING + gameModeWidth; + float w = title.getWidth() + PADDING + gameModeWidth + 5 + gameMode.getWidth(); if (list.getWidth() > w) w = list.getWidth(); if (list.getBestWidth() > w) w = list.getBestWidth(); w += (2 * padding); -- cgit v1.1-2-g2b99