Padding settings

This commit is contained in:
Frank 2022-07-15 15:02:34 +02:00
parent 67d21f3fba
commit 51da03f3c8
4 changed files with 37 additions and 9 deletions

View file

@ -26,12 +26,12 @@ public class TestScreen extends LayoutScreen {
rows.addFiller();
rows.add(new Text(
DynamicSize.fitOrFill(), DynamicSize.fit(),
DynamicSize.fitOrFill(), DynamicSize.fixed(20),
Component.literal("Some Text")
).alignRight()
);
rows.add(new Text(
DynamicSize.fitOrFill(), DynamicSize.fit(),
DynamicSize.fitOrFill(), DynamicSize.fixed(20),
Component.literal("Some other, longer Text")
).centerHorizontal()
);