Skip to content

Commit caed28a

Browse files
authored
Merge branch 'next' into global_links
2 parents ee5bc24 + 5d9de66 commit caed28a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/components/lvgl/layouts.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,15 @@ distribute the free space proportionally.
156156
them. If one of the items has a value of 2, that one would take up twice as much of the space as either one of the
157157
others.
158158

159+
**Cell positioning:**
160+
159161
Child widgets can be placed on the grid using the `grid_cell_row_pos` and `grid_cell_column_pos` configuration
160162
variables.
161163
If either is specified both must be specified. If neither is specified the widget will be placed in the first available
162164
position, in a row-major order.
163165
Row and column spans will be taken into account when reserving space.
166+
Two or more widgets may not be explicitly assigned the same row and column positions unless the option
167+
`multiple_widgets_per_cell` is set to `true`.
164168

165169
#### Shorthand
166170

@@ -181,9 +185,9 @@ columns, with all rows and columns of equal size. For example `layout: 2x3` is a
181185
pixels. Possible options below.
182186
- **pad_row** (*Optional*, int16): Set the padding between the rows, in pixels.
183187
- **pad_column** (*Optional*, int16): Set the padding between the columns, in pixels.
188+
- **multiple_widgets_per_cell** (*Optional*, bool): If true, multiple widgets can be placed in the same cell. Defaults to `false`.
184189

185-
In a grid layout, *all the widgets placed on the grid* can have some additional configuration variables to help with
186-
placement:
190+
In a grid layout, all child widgets placed on the grid have additional configuration options available:
187191

188192
- **grid_cell_row_pos** (*Optional*, int16): Position of the widget, in which row to appear (0 based count).
189193
- **grid_cell_column_pos** (*Optional*, int16): Position of the widget, in which column to appear (0 based count).

0 commit comments

Comments
 (0)