docs(label): mention how the use text align
fixes https://github.com/lvgl/lvgl/issues/2816#issuecomment-1730051132
This commit is contained in:
committed by
GitHub
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, start_char_index)` and
|
||||||
:cpp:expr:`lv_label_get_text_selection_start(label, end_char_index)`.
|
: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
|
Very long texts
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user