Fix buttons row being clipped on height

This commit is contained in:
Lonami Exo 2017-05-09 16:22:36 +02:00
parent 40188d4d25
commit 347382dd69

View file

@ -115,7 +115,9 @@ class CustomizeScreen implements Screen {
}); });
optionsGroup.addActor(webButton); 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 // Load all the available themes
final MoneyBuyBand buyBand = new MoneyBuyBand(game); final MoneyBuyBand buyBand = new MoneyBuyBand(game);
@ -142,7 +144,6 @@ class CustomizeScreen implements Screen {
themesGroup.addActor(card); themesGroup.addActor(card);
} }
themesGroup.space(8);
table.add(new ScrollPane(themesGroup)).expand().fill(); table.add(new ScrollPane(themesGroup)).expand().fill();
// Show the current money row // Show the current money row