Padding settings
This commit is contained in:
parent
67d21f3fba
commit
51da03f3c8
4 changed files with 37 additions and 9 deletions
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue