From 95bf16952e583470beeb456c001645c29d3c56a1 Mon Sep 17 00:00:00 2001 From: EnricoLusaEGF <78972584+EnricoLusaEGF@users.noreply.github.com> Date: Thu, 22 Jul 2021 11:36:40 +0200 Subject: [PATCH] =?UTF-8?q?docs(layout)=20add=20internal=20padding=20parag?= =?UTF-8?q?raph=20to=20grid=20and=20flex=20layout=20p=E2=80=A6=20(#2392)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(layout) add internal padding paragraph to grid and flex layout pages * docs(layout) inlined bulletpoints --- docs/layouts/flex.md | 10 ++++++++++ docs/layouts/grid.md | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/docs/layouts/flex.md b/docs/layouts/flex.md index b31baaab7..c5745a7f6 100644 --- a/docs/layouts/flex.md +++ b/docs/layouts/flex.md @@ -83,6 +83,16 @@ All the Flex-related values are style properties under the hood and you can use - `FLEX_TRACK_PLACE` - `FLEX_GROW` +### Internal padding + +To modify the minimum space flexbox inserts between objects, the following properties can be set on the flex container style: + +- `pad_row` Sets the padding between the rows. + +- `pad_column` Sets the padding between the columns. + +These can for example be used if you don't want any padding between your objects: `lv_style_set_pad_column(&row_container_style,0)` + ## Other features ### RTL diff --git a/docs/layouts/grid.md b/docs/layouts/grid.md index d1a23e2bb..80d3f3e6f 100644 --- a/docs/layouts/grid.md +++ b/docs/layouts/grid.md @@ -84,6 +84,13 @@ All the Grid related values are style properties under the hood and you can use - `GRID_CELL_ROW_POS` - `GRID_CELL_ROW_SPAN` +### Internal padding + +To modify the minimum space Grid inserts between objects, the following properties can be set on the Grid container style: + +- `pad_row` Sets the padding between the rows. +- `pad_column` Sets the padding between the columns. + ## Other features ### RTL