mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-21 20:18:14 +07:00
Added padding to DialogScroller text
This commit is contained in:
parent
c9ae5e3dca
commit
81f3a359f8
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user