From 037a38e99b175266a23c3fe830519b2d17cefa98 Mon Sep 17 00:00:00 2001 From: drdev Date: Tue, 5 Aug 2014 02:52:42 +0000 Subject: [PATCH] Fix size of challenge items --- .../src/forge/screens/quest/QuestEventPanel.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/forge-gui-mobile/src/forge/screens/quest/QuestEventPanel.java b/forge-gui-mobile/src/forge/screens/quest/QuestEventPanel.java index 0eefbf922e4..4873fbd96dd 100644 --- a/forge-gui-mobile/src/forge/screens/quest/QuestEventPanel.java +++ b/forge-gui-mobile/src/forge/screens/quest/QuestEventPanel.java @@ -134,15 +134,14 @@ class QuestEventPanel extends FDisplayObject { @Override protected ScrollBounds layoutAndGetScrollBounds(float visibleWidth, float visibleHeight) { - int panelCount = getChildCount(); - if (panelCount == 0) { + if (getChildCount() == 0) { return new ScrollBounds(visibleWidth, visibleHeight); } float y = 0; float panelWidth = visibleWidth; float padding = 2 * PADDING; //use twice as much padding between panels - float panelHeight = (visibleHeight + padding) / panelCount - padding; + float panelHeight = (visibleHeight + padding) / 3 - padding; if (panelHeight < MIN_HEIGHT) { panelHeight = MIN_HEIGHT; }