Added padding to DialogScroller text

This commit is contained in:
Collin Smith 2019-03-30 20:55:27 -07:00
parent c9ae5e3dca
commit 81f3a359f8

View File

@ -13,6 +13,7 @@ import org.apache.commons.lang3.math.NumberUtils;
public class DialogScroller extends Table implements Disposable {
private static final FontTBL.BitmapFont FONT = Riiablo.fonts.fontformal11;
public static final float PADDING = 8;
DialogCompletionListener listener;
TextArea textArea;
@ -53,8 +54,8 @@ public class DialogScroller extends Table implements Disposable {
scrollPane.setFlingTime(0);
scrollPane.setOverscroll(false, false);
scrollPane.setClamp(false);
scrollPane.setScrollX(-15); // FIXME: actual preferred width of text isn't calculated anywhere, this is best guess
add(scrollPane).grow();
scrollPane.setScrollX(-5); // FIXME: actual preferred width of text isn't calculated anywhere, this is best guess
add(scrollPane).pad(PADDING).grow();
pack();
}