Hello!
When placing text that is longer than the label, the formatting of that text is not good.
According to the visible images, the text is much shorter than the width of the label.
How to fix the incorrect printing. The code is simulated
What MCU/Processor/Board and compiler are you using?
ESP32-C3, ESP-IDF v5.0
What LVGL version are you using?
v8.3.9
Thanks in advance
lv_obj_t* label1;
void lv_example_label(void)
{
label1 = lv_label_create(lv_scr_act());
lv_obj_set_style_bg_color(lv_scr_act(), lv_color_make(0x41, 0x78, 0xbc), 0);
lv_obj_set_style_bg_opa(lv_scr_act(), LV_OPA_100, 0);
lv_label_set_long_mode(label1, LV_LABEL_LONG_DOT);
lv_obj_set_style_text_align(label1, LV_TEXT_ALIGN_CENTER, 0);
lv_obj_set_width(label1, 100);
lv_obj_set_height(label1, 15);
lv_label_set_text(label1, "Max. temperature");
lv_obj_align(label1, LV_ALIGN_CENTER, 0, 40);
lv_obj_set_style_bg_color(label1, lv_color_make(0xff, 0x45, 0x7c), 0);
lv_obj_set_style_bg_opa(label1, LV_OPA_100, 0);
}