mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Prevent description label being able to scroll
This commit is contained in:
@@ -194,7 +194,7 @@ public class QuestBazaarScreen extends TabPageScreen<QuestBazaarScreen> {
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user