Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added padding to DialogScroller text
  • Loading branch information
collinsmith committed Mar 31, 2019
1 parent c9ae5e3 commit 81f3a35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/com/riiablo/widget/DialogScroller.java
Expand Up @@ -13,6 +13,7 @@
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;
Expand Down Expand Up @@ -53,8 +54,8 @@ public void setText(String str) {
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();
}

Expand Down

0 comments on commit 81f3a35

Please sign in to comment.