mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
docs(label): mention how the use text align
fixes https://github.com/lvgl/lvgl/issues/2816#issuecomment-1730051132
This commit is contained in:
parent
9178f67a71
commit
94245932e4
@ -97,6 +97,16 @@ the Label widget only allows manual text selection with
|
||||
:cpp:expr:`lv_label_get_text_selection_start(label, start_char_index)` and
|
||||
:cpp:expr:`lv_label_get_text_selection_start(label, end_char_index)`.
|
||||
|
||||
|
||||
Text alignment
|
||||
--------------
|
||||
|
||||
To horizontally align the lines of a label the `text_algin` style property can be used.
|
||||
Note that it has a visible effect only if
|
||||
|
||||
- the label widget's width is larger than the width of the longest line of the text
|
||||
- the text has multiple lines with non equal line length
|
||||
|
||||
Very long texts
|
||||
---------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user