From 94245932e49053fe2a408801390eccab5f04a828 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Fri, 22 Sep 2023 11:12:32 +0200 Subject: [PATCH] docs(label): mention how the use text align fixes https://github.com/lvgl/lvgl/issues/2816#issuecomment-1730051132 --- docs/widgets/label.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/widgets/label.rst b/docs/widgets/label.rst index 265a7b799..acc88d787 100644 --- a/docs/widgets/label.rst +++ b/docs/widgets/label.rst @@ -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 ---------------