Skip to content

Commit 0a0f2e3

Browse files
authored
[lvgl] Document automatic padding on layouts (#5610)
1 parent ad61504 commit 0a0f2e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/components/lvgl/layouts.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ The configuration `layout: horizontal` is a shorthand for a flex layout:
4141
flex_align_cross: stretch
4242
```
4343
44+
In addition, if the option `pad_all` is set on the container (thus applying padding to the outside) the same
45+
padding will be applied between the columns, i.e. `pad_column` will be set.
46+
4447
### Vertical Layout
4548

4649
The configuration `layout: vertical` is a shorthand for a flex layout:
@@ -54,6 +57,8 @@ The configuration `layout: vertical` is a shorthand for a flex layout:
5457
flex_align_cross: stretch
5558
```
5659

60+
Similarly to the `horizontal` layout, using `pad_all` on the container will also apply that padding between rows.
61+
5762
### Flex
5863

5964
The Flex layout in LVGL is a subset implementation

0 commit comments

Comments
 (0)