1
0
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:
Gabor Kiss-Vamosi 2023-09-22 11:12:32 +02:00 committed by GitHub
parent 9178f67a71
commit 94245932e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
---------------