From f271968b97e7e435f79ea99520d9b260ca233caa Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 29 May 2024 00:19:39 +0500 Subject: fix: shop item hitbox --- core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/src/com/ilotterytea') diff --git a/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java b/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java index bebd9ac..0b6f67f 100644 --- a/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java +++ b/core/src/com/ilotterytea/maxoning/ui/PurchaseItem.java @@ -25,9 +25,9 @@ public class PurchaseItem extends Table { Label desc = new Label(String.format("%s SQP (%s/click)", MaxonConstants.DECIMAL_FORMAT.format(item.price), MaxonConstants.DECIMAL_FORMAT.format(item.multiplier)), skin, "item_price"); desc.setAlignment(Align.left); - summary.add(name).width(desc.getWidth()).row(); - summary.add(desc); + summary.add(name).align(Align.left).row(); + summary.add(desc).grow(); - super.add(summary); + super.add(summary).grow(); } } -- cgit v1.2.3