From 347382dd6940b0d80e3181e34312bd2356258eab Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 9 May 2017 16:22:36 +0200 Subject: [PATCH] Fix buttons row being clipped on height --- .../io/github/lonamiwebs/klooni/screens/CustomizeScreen.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/io/github/lonamiwebs/klooni/screens/CustomizeScreen.java b/core/src/io/github/lonamiwebs/klooni/screens/CustomizeScreen.java index c7e49ae..a2371b2 100644 --- a/core/src/io/github/lonamiwebs/klooni/screens/CustomizeScreen.java +++ b/core/src/io/github/lonamiwebs/klooni/screens/CustomizeScreen.java @@ -115,7 +115,9 @@ class CustomizeScreen implements Screen { }); optionsGroup.addActor(webButton); - table.add(new ScrollPane(optionsGroup)).pad(20, 4, 12, 4); + // Use the same height as the buttons (for instance, the back button) + table.add(new ScrollPane(optionsGroup)) + .pad(20, 4, 12, 4).height(backButton.getHeight()); // Load all the available themes final MoneyBuyBand buyBand = new MoneyBuyBand(game); @@ -142,7 +144,6 @@ class CustomizeScreen implements Screen { themesGroup.addActor(card); } - themesGroup.space(8); table.add(new ScrollPane(themesGroup)).expand().fill(); // Show the current money row