From a3bb19ba6f0a66ae2873e89ca4dff25cbf6fec0b Mon Sep 17 00:00:00 2001 From: drdev Date: Fri, 18 Jul 2014 05:24:27 +0000 Subject: [PATCH] Prevent description label being able to scroll --- forge-gui-mobile/src/forge/screens/quest/QuestBazaarScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-gui-mobile/src/forge/screens/quest/QuestBazaarScreen.java b/forge-gui-mobile/src/forge/screens/quest/QuestBazaarScreen.java index 032a17e704b..4d8564fbfa9 100644 --- a/forge-gui-mobile/src/forge/screens/quest/QuestBazaarScreen.java +++ b/forge-gui-mobile/src/forge/screens/quest/QuestBazaarScreen.java @@ -194,7 +194,7 @@ public class QuestBazaarScreen extends TabPageScreen { float labelWidth = width * 0.7f; float iconWidth = width - labelWidth - padding; float iconHeight = iconWidth * lblIcon.getIcon().getHeight() / lblIcon.getIcon().getWidth(); - float height1 = lblName.getHeight() + lblDesc.getPreferredHeight(width) + 3 * padding; + float height1 = lblName.getHeight() + lblDesc.getPreferredHeight(labelWidth) + 3 * padding; float height2 = iconHeight + btnBuy.getHeight() + lblCost.getHeight() + 4 * padding; return Math.max(height1, height2); }