From 486a743e52fabc69bb010a37d7df84c19df7330d Mon Sep 17 00:00:00 2001 From: drdev Date: Sun, 24 May 2015 22:47:39 +0000 Subject: [PATCH] Improve win/lose screen layout in Landscape mode --- .../src/forge/screens/match/winlose/ViewWinLose.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forge-gui-mobile/src/forge/screens/match/winlose/ViewWinLose.java b/forge-gui-mobile/src/forge/screens/match/winlose/ViewWinLose.java index cbc6dc19268..1a8a3d8957c 100644 --- a/forge-gui-mobile/src/forge/screens/match/winlose/ViewWinLose.java +++ b/forge-gui-mobile/src/forge/screens/match/winlose/ViewWinLose.java @@ -165,6 +165,9 @@ public class ViewWinLose extends FOverlay implements IWinLoseView { protected void doLayout(float width, float height) { float x = width * INSETS_FACTOR; float y = x; + if (Forge.isLandscapeMode()) { //prevent everything being too wide in Landscape mode + x += width * 0.25f; + } float w = width - 2 * x; float dy = height * GAP_Y_FACTOR;